class method self.deprecate

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v4.2.11.3

Available in: v3.0.20 v4.0.13 v4.1.16 v4.2.11.3

Signature

self.deprecate(old, new)

No documentation comment.

Parameters

old req
new req
Source
# File railties/lib/rails/deprecation.rb, line 14
    def self.deprecate(old, new)
      constant = self.new(old, new)
      eval "::#{old} = constant"
    end

Defined in railties/lib/rails/deprecation.rb line 14 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::DeprecatedConstant

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close