instance method
method_missing
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
method_missing(meth, *args, &block)
No documentation comment.
Parameters
-
methreq -
argsrest -
blockblock
Source
# 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
Defined in railties/lib/rails/deprecation.rb line 25
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::DeprecatedConstant