Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2320 from amatsuda/callback_deprecation_message

callback methods are Class methods
  • Loading branch information...
commit a33fe79430001a4b3f59ba8b3fb51ac1b1c2921c 2 parents e93cff8 + a8aa666
@spastorino spastorino authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/callbacks.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.