Skip to content

Commit

Permalink
Initialize our instance variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 17, 2011
1 parent 70f9b74 commit e367142
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actionpack/lib/action_dispatch/middleware/remote_ip.rb
Expand Up @@ -33,7 +33,9 @@ def call(env)

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
Expand Down

0 comments on commit e367142

Please sign in to comment.