Jeremy Kemper
|
aa04635d8e
|
Update :dependent docs and improve its argument error message.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7813 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-09 00:32:36 +00:00 |
|
Jeremy Kemper
|
cdc3c246c6
|
belongs_to infers the foreign key from the association name instead of from the class name. Fulfills the 1.2.4 deprecation.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-08 23:39:28 +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
|
9319361328
|
Dr Math meets Captain Obvious.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-08 05:41:19 +00:00 |
|
Jeremy Kemper
|
346d36bfba
|
Namespace the internal Rakefile tasks. Closes #8850 [drnic]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7795 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-08 05:29:09 +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 |
|
Michael Koziarski
|
ce47db3366
|
Change Migration documentation to use the new syntax. Closes #9813 [sjgman9]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-08 03:18:18 +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
|
bd087e6716
|
Use fast date/time parsing by default. Closes #9811.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 22:01:59 +00:00 |
|
Jeremy Kemper
|
c79dfd36dc
|
Closed wrong ticket. Closes #9802, reopens #9699.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 19:45:07 +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 |
|
Jeremy Kemper
|
c7c3f73fd9
|
Reinstate failsafe date/time parsing rescues. Head off some obvious failures like year == 0 or nil.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 06:27:39 +00:00 |
|
Jeremy Kemper
|
8d7eb30898
|
MySQL: speedup date/time parsing.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 05:29:37 +00:00 |
|
Jeremy Kemper
|
a76fa613d3
|
Check for the dir instead of relying on an exception.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-07 05:25:36 +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 |
|
Jeremy Kemper
|
fe0df25f7b
|
Move misplaced CHANGELOG entry
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7755 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-06 01:26:48 +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
|
335c15005d
|
Bump versions for 1.2.4 release.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-05 05:20:37 +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
|
a30a1a9d5f
|
Try loading activerecord-<adaptername>-adapter gem before trying a plain require so you can use custom gems for the bundled adapters. Also stops gems from requiring an adapter from an old Active Record gem.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-04 01:08:10 +00:00 |
|
Tobias Lütke
|
406ea8f31d
|
only create custom accessors for Kernel:: methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-03 21:48:49 +00:00 |
|
Tobias Lütke
|
b31aa639e7
|
Allow column accessors to be created even if Kernel. or Object# methods of the same name exist.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-03 20:47:33 +00:00 |
|
Michael Koziarski
|
b4ec9904c6
|
Cache the descends_from_activerecord? call to speed up query generation. [skaes] Closes #9765
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-03 05:31:36 +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
|
e5a60fb2bf
|
Don't implicitly assign instance variables by using them as block arguments
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-30 06:22:39 +00:00 |
|
Jeremy Kemper
|
c9bfd7d543
|
Remove DB2 adapter since IBM chooses to maintain their own adapter instead.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-29 23:20:36 +00:00 |
|
Jeremy Kemper
|
4158e54d75
|
Extract Oracle, SQLServer, and Sybase adapters into gems.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-29 23:18:38 +00:00 |
|
Jeremy Kemper
|
d41ea51d39
|
Ruby 1.9 compat for instance method check in Mysql adapter.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-29 23:18:24 +00:00 |
|
David Heinemeier Hansson
|
f18356edb7
|
Updated CHANGELOGs. They need to be filtered for duplicates
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-29 22:18:26 +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 |
|
Jeremy Kemper
|
7cb1f93bcc
|
MySQL: change_column raises if the table or column doesn't exist.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:10:51 +00:00 |
|
David Heinemeier Hansson
|
bbdb4e55f6
|
Added :include option to to_json (closes #9677) [chuyeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-28 14:07:23 +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 |
|
David Heinemeier Hansson
|
5757fb61d8
|
self.fixture_class_names is defined twice in fixtures.rb (closes #7135) [jarkko]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 23:17:01 +00:00 |
|
David Heinemeier Hansson
|
0b2e059f0a
|
Removed unnecessary or statement (closes #7158) [richcollins]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-09-22 23:15:54 +00:00 |
|