diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-06-26 17:08:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-26 17:08:36 -0400 |
commit | cb8eac47f2f8dced447e8364c17abdc197d64adc (patch) | |
tree | 2a3d33b444c53aad02eb08586265de288a22b131 /railties/lib/rails | |
parent | d9412482791ac1643bbb0cb3eb1a64079278e9aa (diff) | |
parent | e221bd0b6cfbb386b0ed7e625b6224eaff1891e1 (diff) | |
download | rails-cb8eac47f2f8dced447e8364c17abdc197d64adc.tar.gz rails-cb8eac47f2f8dced447e8364c17abdc197d64adc.tar.bz2 rails-cb8eac47f2f8dced447e8364c17abdc197d64adc.zip |
Merge pull request #29560 from fatkodima/remove_unnecessary_tap_call
Remove unnecessary `tap` call on `ActionDispatch::MiddlewareStack.new`
Diffstat (limited to 'railties/lib/rails')
-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 8fe48feefb..63300ffef3 100644 --- a/railties/lib/rails/application/default_middleware_stack.rb +++ b/railties/lib/rails/application/default_middleware_stack.rb @@ -10,7 +10,7 @@ module Rails end def build_stack - ActionDispatch::MiddlewareStack.new.tap do |middleware| + ActionDispatch::MiddlewareStack.new do |middleware| if config.force_ssl middleware.use ::ActionDispatch::SSL, config.ssl_options end |