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
921 922 923 924 925 926 927 928 929 930 |
# File 'lib/action_dispatch/routing/mapper.rb', line 921 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 |