Module: Upr
- Defined in:
- lib/upr.rb,
lib/upr/monitor.rb,
lib/upr/input_wrapper.rb
Defined Under Namespace
Classes: InputWrapper, Monitor, Status
Constant Summary collapse
- VERSION =
Upr version number
'0.1.0'
Class Method Summary collapse
-
.new(*args) ⇒ Object
Initializes a new instance of Upr::InputWrapper.
Class Method Details
.new(*args) ⇒ Object
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")
31 32 33 |
# File 'lib/upr.rb', line 31 def self.new(*args) InputWrapper.new(*args) end |