Skip to content

Commit

Permalink
make [] method in router more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhamagnet committed Apr 15, 2013
1 parent a80f04c commit b3d7c41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actionpack/lib/action_dispatch/journey/router.rb
Expand Up @@ -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
Expand Down

0 comments on commit b3d7c41

Please sign in to comment.