Skip to content

Commit

Permalink
callback methods are Class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jul 28, 2011
1 parent e93cff8 commit a8aa666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/callbacks.rb
Expand Up @@ -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
Expand Down

0 comments on commit a8aa666

Please sign in to comment.