Permalink
Browse files

Merge pull request #10226 from buddhamagnet/master

Make [] method more readable
  • Loading branch information...
2 parents a80f04c + b3d7c41 commit ae4a02a7f02042514d50e2024f9751afbdb21cf0 @rafaelfranca rafaelfranca 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 ae4a02a

Please sign in to comment.