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
1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 |
# File 'lib/action_dispatch/routing/mapper.rb', line 1353 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 |