Permalink
Browse files

callback methods are Class methods

  • Loading branch information...
1 parent e93cff8 commit a8aa666f162fb07c0c08906583d459216c142f77 @amatsuda amatsuda committed Jul 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/callbacks.rb
@@ -262,7 +262,7 @@ def touch(*) #:nodoc:
def deprecated_callback_method(symbol) #:nodoc:
if respond_to?(symbol, true)
- ActiveSupport::Deprecation.warn("Overwriting #{symbol} in your models has been deprecated, please use Base##{symbol} :method_name instead")
+ ActiveSupport::Deprecation.warn("Overwriting #{symbol} in your models has been deprecated, please use Base.#{symbol} :method_name instead")
send(symbol)
end
end

0 comments on commit a8aa666

Please sign in to comment.