method
constraints
v3.0.0 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Scoping
constraints(constraints = {})public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 376
def constraints(constraints = {})
scope(:constraints => constraints) { yield }
end 1Note
Typo in matches? example
Iphone example should be def self.matches?(request)