diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-16 16:55:11 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-16 16:55:11 -0800 |
commit | e3671422556ac61f39539264713ba9c04814b80f (patch) | |
tree | 9b962f5a1f1f706168f71e9904ceb05e41d970ad /actionpack/lib | |
parent | 70f9b74a4988891b6cd824065bb06b7e6e19d43f (diff) | |
download | rails-e3671422556ac61f39539264713ba9c04814b80f.tar.gz rails-e3671422556ac61f39539264713ba9c04814b80f.tar.bz2 rails-e3671422556ac61f39539264713ba9c04814b80f.zip |
Initialize our instance variables.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/remote_ip.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/remote_ip.rb b/actionpack/lib/action_dispatch/middleware/remote_ip.rb index 3a88f2ca43..8dbe3af6f1 100644 --- a/actionpack/lib/action_dispatch/middleware/remote_ip.rb +++ b/actionpack/lib/action_dispatch/middleware/remote_ip.rb @@ -33,7 +33,9 @@ module ActionDispatch class GetIp def initialize(env, middleware) - @env, @middleware = env, middleware + @env = env + @middleware = middleware + @calculate_ip = false end # Determines originating IP address. REMOTE_ADDR is the standard |