method
map_method
map_method(method, args, &block)
private
Hide source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 716 def map_method(method, args, &block) options = args.extract_options! options[:via] = method if options.key?(:defaults) defaults(options.delete(:defaults)) { match(*args, options, &block) } else match(*args, options, &block) end self end