class method self.deprecated_method_warning

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

self.deprecated_method_warning(method_name, message = nil)

No documentation comment.

Parameters

method_name req
message opt = nil
Source
# File activesupport/lib/active_support/deprecation/reporting.rb, line 21
      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

Defined in activesupport/lib/active_support/deprecation/reporting.rb line 21 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Deprecation

Type at least 2 characters to search.

↑↓ navigate · open · esc close