class TestRoutingMapper::IpRestrictor
Public Class Methods
matches?(request)
click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 13 def self.matches?(request) request.ip =~ /192\.168\.1\.1\d\d/ end