method

deprecated_method_warning

rails latest stable - Class: ActiveSupport::Deprecation::ClassMethods

Method deprecated or moved

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

deprecated_method_warning(method_name, message=nil)
public

No documentation available.

# File activesupport/lib/active_support/deprecation.rb, line 109
      def deprecated_method_warning(method_name, message=nil)
        warning = "#{method_name} is deprecated and will be removed from Rails #{deprecation_horizon}"
        case message
          when Symbol then "#{warning} (use #{message} instead)"
          when String then "#{warning} (#{message})"
          else warning
        end
      end