class method
self.deprecate
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v4.2.9Signature
self.deprecate(old, new)
No documentation comment.
Parameters
-
oldreq -
newreq
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