This method is deprecated or moved on the latest stable version.
The last existing version (v3.0.9) is shown here.
singleton_method_added(sym)
public
Because the method added may do an alias_method, it can be invoked
recursively. We use @ignore_new_methods as a guard to indicate whether it
is safe for the call to proceed.
# File activerecord/lib/active_record/migration.rb, line 327
def singleton_method_added(sym) #:nodoc:
return if defined?(@ignore_new_methods) && @ignore_new_methods
begin
@ignore_new_methods = true
case sym
when :up, :down
singleton_class.send(:alias_method_chain, sym, "benchmarks")
end
ensure
@ignore_new_methods = false
end
end