instance method
map_method
Ruby on Rails 6.0.6
Since v3.0.20 Last seen in v8.0.4 PrivateSignature
map_method(method, args, &block)
No documentation comment.
Parameters
-
methodreq -
argsreq -
blockblock
Source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 748
def map_method(method, args, &block)
options = args.extract_options!
options[:via] = method
match(*args, options, &block)
self
end
Defined in actionpack/lib/action_dispatch/routing/mapper.rb line 748
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::Mapper::HttpHelpers