Module: ActionDispatch::Routing::Mapper::Shorthand
- Included in:
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/action_dispatch/routing/mapper.rb
Instance Method Summary collapse
Instance Method Details
#match(*args) ⇒ Object
1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 |
# File 'lib/action_dispatch/routing/mapper.rb', line 1341 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 |