instance method
match
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
match(*args)
No documentation comment.
Parameters
-
argsrest
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1353
def match(*args)
if args.size == 1 && args.last.is_a?(Hash)
options = args.pop
path, to = options.find { |name, value| name.is_a?(String) }
options.merge!(:to => to).delete(path)
super(path, options)
else
super
end
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 1353
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::Shorthand