aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/deprecation.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 11:42:30 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 12:11:03 -0300
commitb7f856ce488ef8f6bf4c12bb549f462cb7671c08 (patch)
treef299426a2134bb41519e09afe67d0d9ffd122e8f /railties/lib/rails/deprecation.rb
parent463b5d7581ee16bfaddf34ca349b7d1b5878097c (diff)
downloadrails-b7f856ce488ef8f6bf4c12bb549f462cb7671c08.tar.gz
rails-b7f856ce488ef8f6bf4c12bb549f462cb7671c08.tar.bz2
rails-b7f856ce488ef8f6bf4c12bb549f462cb7671c08.zip
Remove deprecated `RAILS_CACHE` constant
Diffstat (limited to 'railties/lib/rails/deprecation.rb')
-rw-r--r--railties/lib/rails/deprecation.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/railties/lib/rails/deprecation.rb b/railties/lib/rails/deprecation.rb
deleted file mode 100644
index 89f54069e9..0000000000
--- a/railties/lib/rails/deprecation.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-require 'active_support/deprecation/proxy_wrappers'
-
-module Rails
- class DeprecatedConstant < ActiveSupport::Deprecation::DeprecatedConstantProxy
- def self.deprecate(old, current)
- # double assignment is used to avoid "assigned but unused variable" warning
- constant = constant = new(old, current)
- eval "::#{old} = constant"
- end
-
- private
-
- def target
- ::Kernel.eval @new_const.to_s
- end
- end
-
- DeprecatedConstant.deprecate('RAILS_CACHE', '::Rails.cache')
-end