aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2015-08-08 10:27:23 -0400
committereileencodes <eileencodes@gmail.com>2015-08-08 10:38:09 -0400
commit12f08acbacf823041dae27afd1a1a1458bb1e3fa (patch)
tree2d56c2698f1683dfc4c29f15a543ab91b97ad7e4 /railties
parente7dd9069ca24d29f1c781d940c4b22083e111c86 (diff)
downloadrails-12f08acbacf823041dae27afd1a1a1458bb1e3fa.tar.gz
rails-12f08acbacf823041dae27afd1a1a1458bb1e3fa.tar.bz2
rails-12f08acbacf823041dae27afd1a1a1458bb1e3fa.zip
Fix deprecation warning in tests
Using the string version of the class reference is now deprecated when referencing middleware. This should be written as a class not as a string. Deprecation warning that this change fixes: ``` DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change them to actual class references. For example: "ActionDispatch::ShowExceptions" => ActionDispatch::ShowExceptions ```
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/application/bootstrap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/bootstrap.rb b/railties/lib/rails/application/bootstrap.rb
index 0f4d932749..9baf8aa742 100644
--- a/railties/lib/rails/application/bootstrap.rb
+++ b/railties/lib/rails/application/bootstrap.rb
@@ -63,7 +63,7 @@ INFO
Rails.cache = ActiveSupport::Cache.lookup_store(config.cache_store)
if Rails.cache.respond_to?(:middleware)
- config.middleware.insert_before("Rack::Runtime", Rails.cache.middleware)
+ config.middleware.insert_before(::Rack::Runtime, Rails.cache.middleware)
end
end
end