Class: WebConsole::Request
- Inherits:
-
ActionDispatch::Request
- Object
- ActionDispatch::Request
- WebConsole::Request
- Defined in:
- lib/web_console/request.rb
Defined Under Namespace
Classes: GetSecureIp
Instance Method Summary collapse
Instance Method Details
#permitted? ⇒ Boolean
7 8 9 |
# File 'lib/web_console/request.rb', line 7 def permitted? .include?(strict_remote_ip) end |
#strict_remote_ip ⇒ Object
11 12 13 14 15 |
# File 'lib/web_console/request.rb', line 11 def strict_remote_ip GetSecureIp.new(self, ).to_s rescue ActionDispatch::RemoteIp::IpSpoofAttackError "[Spoofed]" end |