diff options
author | Yuki Nishijima <mail@yukinishijima.net> | 2015-06-11 04:34:11 -0700 |
---|---|---|
committer | Yuki Nishijima <mail@yukinishijima.net> | 2015-06-11 04:34:11 -0700 |
commit | a888c3cdc9b0280783861b4687409db619669ab2 (patch) | |
tree | e4d7b490293a4924c74ce6a8843782f1ab53c16a /railties/lib/rails/application | |
parent | 96bb004fc6e67cdf1b873f11ad5f8efd06949797 (diff) | |
download | rails-a888c3cdc9b0280783861b4687409db619669ab2.tar.gz rails-a888c3cdc9b0280783861b4687409db619669ab2.tar.bz2 rails-a888c3cdc9b0280783861b4687409db619669ab2.zip |
Change the `index` arg of `ActionDispatch::Static#new` to a kwarg
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/default_middleware_stack.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/default_middleware_stack.rb b/railties/lib/rails/application/default_middleware_stack.rb index 503977b395..909ed5cc35 100644 --- a/railties/lib/rails/application/default_middleware_stack.rb +++ b/railties/lib/rails/application/default_middleware_stack.rb @@ -18,7 +18,7 @@ module Rails middleware.use ::Rack::Sendfile, config.action_dispatch.x_sendfile_header if config.serve_static_files - middleware.use ::ActionDispatch::Static, paths["public"].first, config.static_cache_control, config.static_index + middleware.use ::ActionDispatch::Static, paths["public"].first, config.static_cache_control, index: config.static_index end if rack_cache = load_rack_cache |