diff options
author | buddhamagnet <buddhamagnet@gmail.com> | 2013-04-20 12:11:44 +0100 |
---|---|---|
committer | buddhamagnet <buddhamagnet@gmail.com> | 2013-04-20 15:24:23 +0100 |
commit | 2948668bf1509941d7862362ed9c67b95f6cb155 (patch) | |
tree | e725fe3f154633c2f04fac6c7a974fb17efda105 /actionpack/lib | |
parent | 0400a7ff574f83f2f5d5c3f7d7569bfb37963dda (diff) | |
download | rails-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.rb | 3 |
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 |