Permalink
Browse files

Remove deprecated `RAILS_CACHE` constant

  • Loading branch information...
rafaelfranca committed Jan 4, 2015
1 parent 463b5d7 commit b7f856ce488ef8f6bf4c12bb549f462cb7671c08
Showing with 4 additions and 19 deletions.
  1. +4 −0 railties/CHANGELOG.md
  2. +0 −19 railties/lib/rails/deprecation.rb
View
@@ -1,3 +1,7 @@
+* Remove deprecated `RAILS_CACHE` constant.
+
+ *Rafael Mendonça França*
+
* Remove deprecated `serve_static_assets` configuration.
*Rafael Mendonça França*
@@ -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

0 comments on commit b7f856c

Please sign in to comment.