aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/deprecated_finders.rb
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2006-10-24 17:25:30 +0000
committerJamis Buck <jamis@37signals.com>2006-10-24 17:25:30 +0000
commite5684a28777c8bbfe472ac33fdbfddc7bdc1f9a7 (patch)
treef1db21efc9512f14af7f0d136d2dd863dabcda3a /activerecord/lib/active_record/deprecated_finders.rb
parent897ffd63d2ee33808eb68173409bcf1047930535 (diff)
downloadrails-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/deprecated_finders.rb')
-rw-r--r--activerecord/lib/active_record/deprecated_finders.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/deprecated_finders.rb b/activerecord/lib/active_record/deprecated_finders.rb
index 03b2b3d03f..4ab2dde5f0 100644
--- a/activerecord/lib/active_record/deprecated_finders.rb
+++ b/activerecord/lib/active_record/deprecated_finders.rb
@@ -10,7 +10,7 @@ module ActiveRecord
def find_on_conditions(ids, conditions) # :nodoc:
find(ids, :conditions => conditions)
end
- deprecate :find_on_conditions
+ deprecate :find_on_conditions => "use find(ids, :conditions => conditions)"
# This method is deprecated in favor of find(:first, options).
#
@@ -22,7 +22,7 @@ module ActiveRecord
def find_first(conditions = nil, orderings = nil, joins = nil) # :nodoc:
find(:first, :conditions => conditions, :order => orderings, :joins => joins)
end
- deprecate :find_first
+ deprecate :find_first => "use find(:first, ...)"
# This method is deprecated in favor of find(:all, options).
#
@@ -38,7 +38,7 @@ module ActiveRecord
limit, offset = limit.is_a?(Array) ? limit : [ limit, nil ]
find(:all, :conditions => conditions, :order => orderings, :joins => joins, :limit => limit, :offset => offset)
end
- deprecate :find_all
+ deprecate :find_all => "use find(:all, ...)"
end
end
-end \ No newline at end of file
+end