Module: Roda::RodaPlugins::MethodOverride

Defined in:
lib/roda/plugins/method_override.rb

Overview

This is a simplified Roda plugin version of the Rack middleware: https://github.com/rack/rack/blob/v2.2.2/lib/rack/method_override.rb

Defined Under Namespace

Modules: RequestMethods

Class Method Summary collapse

Class Method Details

.configure(app, opts = {}) ⇒ Object



8
9
10
# File 'lib/roda/plugins/method_override.rb', line 8

def self.configure(app, opts = {})
  app.opts[:method_override_param] = opts[:method_override_param] || "_method"
end