Class: Fishplate::Rack
- Inherits:
-
Object
- Object
- Fishplate::Rack
- Defined in:
- lib/fishplate/rack.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app) ⇒ Rack
Returns a new instance of Rack.
3 4 5 |
# File 'lib/fishplate/rack.rb', line 3 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/fishplate/rack.rb', line 7 def call(env) @app.call(env) ensure ActiveRecord::Base.connection_handler.clear_active_connections! # ActiveRecord::Base.connection_handler.flush_idle_connections! end |