Class: IpRestriction::AllowedIpsConstraint
- Inherits:
-
Object
- Object
- IpRestriction::AllowedIpsConstraint
- Defined in:
- lib/ip_restriction/allowed_ips_constraint.rb
Instance Method Summary collapse
Instance Method Details
#matches?(request) ⇒ Boolean
3 4 5 |
# File 'lib/ip_restriction/allowed_ips_constraint.rb', line 3 def matches?(request) checker.allowed?(request.remote_ip) end |