aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorfatkodima <fatkodima@rambler.ru>2017-06-24 18:46:31 +0300
committerfatkodima <fatkodima@rambler.ru>2017-06-24 18:46:31 +0300
commite221bd0b6cfbb386b0ed7e625b6224eaff1891e1 (patch)
tree1651f86813cbaa9cf6cf97725ad745403717d7a7 /railties/lib
parent8cad811b0559661df3c58528ac1e8d5a2e601d4d (diff)
downloadrails-e221bd0b6cfbb386b0ed7e625b6224eaff1891e1.tar.gz
rails-e221bd0b6cfbb386b0ed7e625b6224eaff1891e1.tar.bz2
rails-e221bd0b6cfbb386b0ed7e625b6224eaff1891e1.zip
Remove unnecessary `tap` call on `ActionDispatch::MiddlewareStack` instance
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/application/default_middleware_stack.rb2
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