aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey/router.rb
diff options
context:
space:
mode:
authorbuddhamagnet <buddhamagnet@gmail.com>2013-04-15 20:10:18 +0100
committerbuddhamagnet <buddhamagnet@gmail.com>2013-04-15 20:10:18 +0100
commitb3d7c41a990a98d895ccd3e0b938e08c954bd8c7 (patch)
treed85f8a3875ad37b2ae35f01313fca26d39b691ba /actionpack/lib/action_dispatch/journey/router.rb
parenta80f04c00e3606a85745cdf07f545175c62bd817 (diff)
downloadrails-b3d7c41a990a98d895ccd3e0b938e08c954bd8c7.tar.gz
rails-b3d7c41a990a98d895ccd3e0b938e08c954bd8c7.tar.bz2
rails-b3d7c41a990a98d895ccd3e0b938e08c954bd8c7.zip
make [] method in router more readable
Diffstat (limited to 'actionpack/lib/action_dispatch/journey/router.rb')
-rw-r--r--actionpack/lib/action_dispatch/journey/router.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router.rb b/actionpack/lib/action_dispatch/journey/router.rb
index 31868b1814..419e665d12 100644
--- a/actionpack/lib/action_dispatch/journey/router.rb
+++ b/actionpack/lib/action_dispatch/journey/router.rb
@@ -38,7 +38,9 @@ module ActionDispatch
env['REMOTE_ADDR']
end
- def [](k); env[k]; end
+ def [](k)
+ env[k]
+ end
end
attr_reader :request_class, :formatter