Namespace

Methods

Upr

Constants

VERSION

Upr version number

Public Class Methods

new(*args) click to toggle source

Initializes a new instance of Upr::InputWrapper. Usage in config.ru:

  use Upr, :path_info => %w(/upload),
           :drb => "druby://192.168.0.1:666",
           :frequency => 1

This middleware MUST be be loaded before any parameter parsers like ActionController::ParamsParser in Rails.

For use in RAILS_ROOT/config/environment.rb, the following works insdie the Rails::Initializer.run block:

  config.middleware.insert_before('ActionController::ParamsParser',
      'Upr', :path_info => '/', :drb => "druby://192.168.0.1:666")
    # File lib/upr.rb, line 30
30:   def self.new(*args)
31:     InputWrapper.new(*args)
32:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.