method
method_missing
rails latest stable - Class:
Rails::DeprecatedConstant
method_missing(meth, *args, &block)public
No documentation available.
# File railties/lib/rails/deprecation.rb, line 25
def method_missing(meth, *args, &block)
::ActiveSupport::Deprecation.warn("#{@old} is deprecated. Please use #{@new}") unless @warned
@warned = true
target = @target.call
if target.respond_to?(meth)
target.send(meth, *args, &block)
else
super
end
end