Module: ActionDispatch::Routing::Mapper::Shorthand
- Included in:
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/action_dispatch/routing/mapper.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#match(*args) ⇒ Object
1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 |
# File 'lib/action_dispatch/routing/mapper.rb', line 1470 def match(*args) if args.size == 1 && args.last.is_a?(Hash) = args.pop path, to = .find { |name, value| name.is_a?(String) } .merge!(:to => to).delete(path) super(path, ) else super end end |