aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorbuddhamagnet <buddhamagnet@gmail.com>2013-04-20 12:11:44 +0100
committerbuddhamagnet <buddhamagnet@gmail.com>2013-04-20 15:24:23 +0100
commit2948668bf1509941d7862362ed9c67b95f6cb155 (patch)
treee725fe3f154633c2f04fac6c7a974fb17efda105 /actionpack/lib
parent0400a7ff574f83f2f5d5c3f7d7569bfb37963dda (diff)
downloadrails-2948668bf1509941d7862362ed9c67b95f6cb155.tar.gz
rails-2948668bf1509941d7862362ed9c67b95f6cb155.tar.bz2
rails-2948668bf1509941d7862362ed9c67b95f6cb155.zip
Increase readability of ternary statement in build method
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/metal.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb
index c7cb88e64f..b84c9e78c3 100644
--- a/actionpack/lib/action_controller/metal.rb
+++ b/actionpack/lib/action_controller/metal.rb
@@ -36,8 +36,7 @@ module ActionController
raise "MiddlewareStack#build requires an app" unless app
middlewares.reverse.inject(app) do |a, middleware|
- middleware.valid?(action) ?
- middleware.build(a) : a
+ middleware.valid?(action) ? middleware.build(a) : a
end
end
end