Permalink
Browse files

make [] method in router more readable

  • Loading branch information...
1 parent a80f04c commit b3d7c41a990a98d895ccd3e0b938e08c954bd8c7 @buddhamagnet buddhamagnet committed Apr 15, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/lib/action_dispatch/journey/router.rb
@@ -38,7 +38,9 @@ def ip
env['REMOTE_ADDR']
end
- def [](k); env[k]; end
+ def [](k)
+ env[k]
+ end
end
attr_reader :request_class, :formatter

0 comments on commit b3d7c41

Please sign in to comment.