diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-10-03 19:12:53 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-10-03 19:26:24 +0900 |
commit | 70b09eda034766efcd2cac9280d42c7bbaaadff9 (patch) | |
tree | 2eb835fc7e6e94aa99ef343c421542d1bdddc67d /railties/lib | |
parent | 9db73a2591e43d1851411727d6594a72efa35663 (diff) | |
download | rails-70b09eda034766efcd2cac9280d42c7bbaaadff9.tar.gz rails-70b09eda034766efcd2cac9280d42c7bbaaadff9.tar.bz2 rails-70b09eda034766efcd2cac9280d42c7bbaaadff9.zip |
use class to specify the middleware [ci skip]
using string for middleware class names is deprecated in 83b767cef90abfc4c2ee9f4b451b0215501fae9a
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb b/railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb index 45c44d24f8..9fca213a04 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/cors.rb @@ -3,7 +3,7 @@ # Read more: https://github.com/cyu/rack-cors -# Rails.application.config.middleware.insert_before 0, "Rack::Cors" do +# Rails.application.config.middleware.insert_before 0, Rack::Cors do # allow do # origins 'example.com' # |