Class: RiotOnRails::DatabaseCleanerMiddleware
- Inherits:
-
Riot::ContextMiddleware
- Object
- Riot::ContextMiddleware
- RiotOnRails::DatabaseCleanerMiddleware
- Defined in:
- lib/riot_on_rails/database_cleaner_middleware.rb
Instance Method Summary collapse
Instance Method Details
#call(context) ⇒ Object
5 6 7 8 |
# File 'lib/riot_on_rails/database_cleaner_middleware.rb', line 5 def call(context) setup_database_cleaner(context) if clean_database?(context) middleware.call(context) end |