Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/only/rails/routing.rb

Instance Method Summary collapse

Instance Method Details

#only(constraint_name, &block) ⇒ Object



3
4
5
# File 'lib/only/rails/routing.rb', line 3

def only(constraint_name, &block)
  constraints Only.constraints[constraint_name], &block
end