instance method
method_added
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
method_added(meth)
No documentation comment.
Parameters
-
methreq
Source
# File activerecord/lib/active_record/callbacks.rb, line 246
def method_added(meth)
super
if CALLBACKS.include?(meth.to_sym)
ActiveSupport::Deprecation.warn("Base##{meth} has been deprecated, please use Base.#{meth} :method instead", caller[0,1])
send(meth.to_sym, meth.to_sym)
end
end
Defined in activerecord/lib/active_record/callbacks.rb line 246
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Callbacks::ClassMethods