class method
self.new
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.1.12Available in: v3.0.20 v3.1.12
Signature
self.new(env, check_ip_spoofing, trusted_proxies)
No documentation comment.
Parameters
-
envreq -
check_ip_spoofingreq -
trusted_proxiesreq
Source
# File actionpack/lib/action_dispatch/middleware/remote_ip.rb, line 6
def initialize(env, check_ip_spoofing, trusted_proxies)
@env = env
@check_ip_spoofing = check_ip_spoofing
@trusted_proxies = trusted_proxies
end
Defined in actionpack/lib/action_dispatch/middleware/remote_ip.rb line 6
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::RemoteIp::RemoteIpGetter