Jeremy Kemper
|
671228942d
|
Alias association #build to #new so it behaves predictably. Closes #8787.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-15 08:09:04 +00:00 |
|
Jeremy Kemper
|
660a696a3f
|
Test that change_column quotes column names. Closes #9537 [lawrence]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-15 07:33:53 +00:00 |
|
Jeremy Kemper
|
e81f1acc33
|
Uncomment test for join model method_missing. Closes #8707 [Giles Bowkett, Josh Peek]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-15 04:14:10 +00:00 |
|
Jeremy Kemper
|
619f2897f5
|
Update test/all.sh
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7896 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-15 03:46:15 +00:00 |
|
Jeremy Kemper
|
6cc7095320
|
Update IGNORED_SQL for SQL Server. Closes #9638 [lawrence]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-15 03:32:00 +00:00 |
|
Rick Olson
|
f56dd107cd
|
Observers can observe model names as symbols properly now. Closes #9869 [queso]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-14 05:20:24 +00:00 |
|
Tobias Lütke
|
0ad5365bf4
|
find_and_(initialize|create)_by methods can now properly initialize protected attributes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-10 19:11:50 +00:00 |
|
Michael Koziarski
|
1c881ca5bf
|
Ensure that 'autosaving' works when associations aren't loaded [Bryan Helmkamp] References #8713
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-10 06:45:13 +00:00 |
|
Michael Koziarski
|
3122d321fd
|
Make sure AR::Base#clone handles attr changes made in after_initialize hooks. Closes #7191 [weyus]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-08 06:21:38 +00:00 |
|
Jeremy Kemper
|
4eaa8ba5be
|
PostgreSQL: support multiline default values. Closes #7533.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-08 06:17:53 +00:00 |
|
Jeremy Kemper
|
85c86f0999
|
MySQL: fix change_column on not-null columns that don't accept dfeault values of ''. Closes #6663.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-08 03:28:28 +00:00 |
|
Jeremy Kemper
|
210ecaecc3
|
validates_uniqueness_of behaves well with single-table inheritance. Closes #3833.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-08 01:44:55 +00:00 |
|
Jeremy Kemper
|
84a14f2620
|
Raise ProtectedAttributeAssignmentError in development and test environments when mass-assigning to an attr_protected attribute. Closes #9699.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 19:43:19 +00:00 |
|
Michael Koziarski
|
cd64471bdb
|
Fix calling .clear on a has_many :dependent=>:delete_all association. [tarmo] Closes #6904
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 05:05:12 +00:00 |
|
Michael Koziarski
|
5a276643d1
|
Allow change_column to set NOT NULL in the PostgreSQL adaptor. Closes #3904 [tarmo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 04:52:09 +00:00 |
|
Michael Koziarski
|
8ef4bc6c75
|
Missed the add
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 01:03:19 +00:00 |
|
Michael Koziarski
|
638505b90f
|
Send the correct INSERT statement when dealing with objects with only primary keys. Closes #9523 [tarmo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7753 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 00:49:58 +00:00 |
|
Michael Koziarski
|
4db718e2bb
|
Only cache attributes which need it for performance reasons. Closes #9767 [skaes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7752 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 00:48:43 +00:00 |
|
Jeremy Kemper
|
b96c298f47
|
Test for each JSON fragment to workaround assumed hash ordering.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 00:40:28 +00:00 |
|
Jeremy Kemper
|
55640fb939
|
Simplify some JSON tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 00:33:51 +00:00 |
|
Rick Olson
|
5b2e8b1eb1
|
Fix that ActiveRecord would create attribute methods and override custom attribute getters if the method is also defined in Kernel.methods. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 00:25:07 +00:00 |
|
Rick Olson
|
24c2457a26
|
Don't call attr_readonly on polymorphic belongs_to associations, in case it matches the name of some other non-ActiveRecord class/module. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-05 19:27:33 +00:00 |
|
Jeremy Kemper
|
b1968708e1
|
Hash#to_json takes :only or :except options to specific or omit certain hash keys. Enumerable#to_json passes through its options to each element. Closes #9751.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-04 03:28:42 +00:00 |
|
Jeremy Kemper
|
0ee1cb2cd3
|
Ruby 1.9 compat, consistent load paths
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-02 05:32:14 +00:00 |
|
David Heinemeier Hansson
|
7275d2749c
|
Fixed JSON encoding to use quoted keys according to the JSON standard (closes #8762) [choonkat/chuyeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-30 20:57:50 +00:00 |
|
Rick Olson
|
66d05f5e2c
|
Add attr_readonly to specify columns that are skipped during a normal ActiveRecord #save operation. Closes #6896 [dcmanges]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-30 07:09:44 +00:00 |
|
Rick Olson
|
30a652ad41
|
Make size for has_many :through use counter cache if it exists. Closes #9734 [xaviershay]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7692 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-30 06:47:20 +00:00 |
|
Jeremy Kemper
|
26174b2881
|
Failing counter cache test. References #6896.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7675 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 23:55:50 +00:00 |
|
David Heinemeier Hansson
|
191a0484f0
|
Missing test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7674 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 21:11:14 +00:00 |
|
Jeremy Kemper
|
b095ce63f2
|
Fixtures test fixes and general cleanup. Closes #9682 [norbert]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:56:07 +00:00 |
|
David Heinemeier Hansson
|
e3b49c052b
|
Fixed spelling errors (closes #9706) [tarmo/rmm5t]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:18:47 +00:00 |
|
David Heinemeier Hansson
|
078bd0515e
|
Added fixture caching thatll speed up a normal fixture-powered test suite between 50% and 100% (closes #9682) [frederick.cheung@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:05:03 +00:00 |
|
Jeremy Kemper
|
4965b1b961
|
Correctly quote id list for limited eager loading. Closes #7482.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 23:51:03 +00:00 |
|
Michael Koziarski
|
1abe5a2ded
|
Fix broken mysql test [frederick.cheung@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7579 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 22:33:51 +00:00 |
|
David Heinemeier Hansson
|
046a87a855
|
Fixed rename_column for SQLite when using symbols for the column names (closes #8616) [drodriguez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 18:23:30 +00:00 |
|
David Heinemeier Hansson
|
00326bb0b4
|
Make date tests pass on 64-bit (closes #9121) [mutru]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7556 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 17:57:10 +00:00 |
|
David Heinemeier Hansson
|
e86d1cd621
|
Added ActiveRecord::Base#to_json/from_json (currently does not support :include like to_xml) [DHH]. Added ActiveRecord::Base#from_xml [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-20 23:22:30 +00:00 |
|
Michael Koziarski
|
7010ee361e
|
Stop users from calling .create on a has_many / habtm association when the owner is a new_record?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-18 10:26:56 +00:00 |
|
Tobias Lütke
|
4a1388adea
|
Define dynamic finders as real methods after first usage. Close #9317
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-18 10:04:11 +00:00 |
|
Jeremy Kemper
|
81d619ea0d
|
Associations macros accept extension blocks alongside modules. Closes #9346.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7504 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-17 21:19:44 +00:00 |
|
Michael Koziarski
|
acbec3e565
|
Ensure that custom mutators aren't redefined by define_attribute_methods. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7500 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-17 09:29:02 +00:00 |
|
Jeremy Kemper
|
bfb906a905
|
Speed up and simplify query caching.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-17 06:15:58 +00:00 |
|
Jeremy Kemper
|
30fb7b8c8b
|
connection.select_rows 'sql' returns an array (rows) of arrays (field values). Closes #2329.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-16 03:32:47 +00:00 |
|
Jeremy Kemper
|
b8657089f2
|
Eager loading respects explicit :joins. Closes #9496.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-15 23:50:12 +00:00 |
|
David Heinemeier Hansson
|
79202b37dc
|
Fixed that altering join tables in migrations would fail w/ sqlite3 #7453 [TimoMihaljov/brandon]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-15 21:23:05 +00:00 |
|
Jeremy Kemper
|
498d8ff72e
|
Fix association writer with :dependent => :nullify. Closes #7314.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7477 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-14 07:29:22 +00:00 |
|
Jeremy Kemper
|
f7c371dff8
|
OpenBase: update for new lib and latest Rails. Support migrations. Closes #8748.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7472 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-13 23:21:14 +00:00 |
|
Jeremy Kemper
|
54a6ed1482
|
minor speedups + forward-compat syntax
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7471 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-13 23:13:34 +00:00 |
|
Jeremy Kemper
|
b4ad9e0cb9
|
Kill lingering acts
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7460 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-11 06:47:27 +00:00 |
|
David Heinemeier Hansson
|
ea0975a20b
|
Moved acts_as_tree into a plugin of the same name on the official Rails svn (closes #9514) [lifofifo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-11 03:25:59 +00:00 |
|