From b3d7c41a990a98d895ccd3e0b938e08c954bd8c7 Mon Sep 17 00:00:00 2001 From: buddhamagnet Date: Mon, 15 Apr 2013 20:10:18 +0100 Subject: make [] method in router more readable --- actionpack/lib/action_dispatch/journey/router.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3