Class: MultipartBufferSetter
- Inherits:
-
Object
- Object
- MultipartBufferSetter
- Defined in:
- common/multipart_buffer_setter.rb
Instance Method Summary collapse
-
#call(env) ⇒ Object
-
#initialize(app) ⇒ MultipartBufferSetter
constructor
A new instance of MultipartBufferSetter.
Constructor Details
#initialize(app) ⇒ MultipartBufferSetter
Returns a new instance of MultipartBufferSetter.
3 4 5 |
# File 'common/multipart_buffer_setter.rb', line 3 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 |
# File 'common/multipart_buffer_setter.rb', line 7 def call(env) env.merge!(Rack::RACK_MULTIPART_BUFFER_SIZE => 100*1024*1024) @app.call(env) end |