method

method_missing

rails latest stable - Class: Rails::DeprecatedConstant

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

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