diff options
author | Jamis Buck <jamis@37signals.com> | 2006-10-24 17:25:30 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2006-10-24 17:25:30 +0000 |
commit | e5684a28777c8bbfe472ac33fdbfddc7bdc1f9a7 (patch) | |
tree | f1db21efc9512f14af7f0d136d2dd863dabcda3a /activerecord/lib/active_record/associations | |
parent | 897ffd63d2ee33808eb68173409bcf1047930535 (diff) | |
download | rails-e5684a28777c8bbfe472ac33fdbfddc7bdc1f9a7.tar.gz rails-e5684a28777c8bbfe472ac33fdbfddc7bdc1f9a7.tar.bz2 rails-e5684a28777c8bbfe472ac33fdbfddc7bdc1f9a7.zip |
update deprecations to include alternative methods (where available)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5359 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_association.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb index 8c0e50e38e..1eea798ab4 100644 --- a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +++ b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb @@ -81,7 +81,7 @@ module ActiveRecord self end - deprecate :push_with_attributes + deprecate :push_with_attributes => "consider using has_many :through instead" alias :concat_with_attributes :push_with_attributes diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb index 3cd6e5d716..0a275ab430 100644 --- a/activerecord/lib/active_record/associations/has_many_association.rb +++ b/activerecord/lib/active_record/associations/has_many_association.rb @@ -31,13 +31,13 @@ module ActiveRecord @reflection.klass.find_all(conditions, orderings, limit, joins) end end - deprecate :find_all + deprecate :find_all => "use find(:all, ...) instead" # DEPRECATED. Find the first associated record. All arguments are optional. def find_first(conditions = nil, orderings = nil) find_all(conditions, orderings, 1).first end - deprecate :find_first + deprecate :find_first => "use find(:first, ...) instead" # Count the number of associated records. All arguments are optional. def count(*args) |