method
map_method

Ruby on Rails latest stable (v5.2.3)
-
0 notes -
Class: ActionDispatch::Routing::Mapper::HttpHelpers
map_method(method, args, &block)
private
Hide source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 740 def map_method(method, args, &block) options = args.extract_options! options[:via] = method match(*args, options, &block) self end