Sha256: 6fee3011879eaee093562b68eecddcd53cb50f1e3a419012d9586a5be925eb69
Contents?: true
Size: 723 Bytes
Versions: 2
Compression:
Stored size: 723 Bytes
Contents
RailsApp::Application.routes.draw do get 'dummy/index' => 'dummy#index' get 'dummy/blocked_by_inline' => 'dummy#blocked_by_inline', :constraints => FirewallConstraint::Constraint.new constraints FirewallConstraint::Constraint.new do get 'dummy/blocked_by_block' => 'dummy#blocked_by_block' end constraints FirewallConstraint::Constraint.new(['127.0.0.1']) do get 'dummy/blocked_by_dynamic' => 'dummy#blocked_by_dynamic' end root :to => 'dummy#index' constraints FirewallConstraint::Constraint.new('fe80::d69a:20ff:fe0d:45fe') do get 'dummy/blocked_by_ipv6' end constraints FirewallConstraint::Constraint.new(Proc.new{['127.0.0.1']}) do get 'dummy/blocked_by_proc' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
firewall_constraint-0.0.5 | spec/rails_app/config/routes.rb |
firewall_constraint-0.0.4 | spec/rails_app/config/routes.rb |