Class: Actions::Middleware::KeepCurrentTaxonomies
- Inherits:
-
Dynflow::Middleware
- Object
- Dynflow::Middleware
- Actions::Middleware::KeepCurrentTaxonomies
- Defined in:
- app/lib/actions/middleware/keep_current_taxonomies.rb
Instance Method Summary collapse
- #delay(*args) ⇒ Object
- #finalize ⇒ Object
- #hook(*args) ⇒ Object
- #plan(*args) ⇒ Object
- #run(*args) ⇒ Object
Instance Method Details
#delay(*args) ⇒ Object
[View source]
4 5 6 |
# File 'app/lib/actions/middleware/keep_current_taxonomies.rb', line 4 def delay(*args) pass(*args).tap { store_current_taxonomies } end |
#finalize ⇒ Object
[View source]
18 19 20 |
# File 'app/lib/actions/middleware/keep_current_taxonomies.rb', line 18 def finalize restore_current_taxonomies { pass } end |
#hook(*args) ⇒ Object
[View source]
22 23 24 |
# File 'app/lib/actions/middleware/keep_current_taxonomies.rb', line 22 def hook(*args) restore_current_taxonomies { pass(*args) } end |
#plan(*args) ⇒ Object
[View source]
8 9 10 11 12 |
# File 'app/lib/actions/middleware/keep_current_taxonomies.rb', line 8 def plan(*args) with_current_taxonomies do pass(*args).tap { store_current_taxonomies } end end |
#run(*args) ⇒ Object
[View source]
14 15 16 |
# File 'app/lib/actions/middleware/keep_current_taxonomies.rb', line 14 def run(*args) restore_current_taxonomies { pass(*args) } end |