Class: IpRestriction::AllowedIpsConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/ip_restriction/allowed_ips_constraint.rb

Instance Method Summary collapse

Instance Method Details

#matches?(request) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/ip_restriction/allowed_ips_constraint.rb', line 3

def matches?(request)
  checker.allowed?(request.remote_ip)
end