Class: Merb::BootLoader::Defaults

Inherits:
Merb::BootLoader show all
Defined in:
lib/merb-core/bootloader.rb

Overview

Setup some useful defaults

Class Method Summary collapse

Methods inherited from Merb::BootLoader

after, after_app_loads, before, before_app_loads, before_master_shutdown, before_worker_shutdown, default_framework, finished?, inherited, move_klass

Class Method Details

.runObject

Sets up the defaults

Returns

nil

:api: plugin



252
253
254
255
256
257
258
# File 'lib/merb-core/bootloader.rb', line 252

def self.run
  Merb::Request.http_method_overrides.concat([
    proc { |c| c.params[:_method] },
    proc { |c| c.env['HTTP_X_HTTP_METHOD_OVERRIDE'] }
  ])
  nil
end