module ActionDispatch::Routing::Mapper::HttpHelpers

Private Instance Methods

map_method(method, *args, &block) click to toggle source
# File lib/post-em-all.rb, line 34
def map_method(method, *args, &block)
  options = args.extract_options!
  options[:via] = method
  if method == :get and @scope[:path] =~ /^\/get/
    options[:via] = :post 
  end
  args.push(options)
  match(*args, &block)
  self
end