aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-12-30 11:43:34 +0100
committerJosé Valim <jose.valim@gmail.com>2009-12-30 11:43:34 +0100
commit97a64b6b22d87cb6f89a224f7832433b86b545c0 (patch)
treec5e2e09316a8ae3f9317877d1e8f049a1cc0521f /activerecord/lib/active_record/callbacks.rb
parente58ad8ed9cb0e67fde93c7edc8a0e13b8bc342ae (diff)
downloadrails-97a64b6b22d87cb6f89a224f7832433b86b545c0.tar.gz
rails-97a64b6b22d87cb6f89a224f7832433b86b545c0.tar.bz2
rails-97a64b6b22d87cb6f89a224f7832433b86b545c0.zip
Get rid of DeprecatedCallbacks in ActiveRecord::Associations and finally remove it.
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rw-r--r--activerecord/lib/active_record/callbacks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index e1d772bd95..e2a8f03c8f 100644
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -274,7 +274,7 @@ module ActiveRecord
def deprecated_callback_method(symbol) #:nodoc:
if respond_to?(symbol)
- ActiveSupport::Deprecation.warn("Base##{symbol} has been deprecated, please use Base.#{symbol} :method instead")
+ ActiveSupport::Deprecation.warn("Overwriting #{symbol} in your models has been deprecated, please use Base##{symbol} :method_name instead")
send(symbol)
end
end