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