Module: Cell::Filters
- Defined in:
- lib/cell/filters.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/cell/filters.rb', line 5 def self.included(base) base.class_eval do include Hooks define_hook :before_filter define_hook :after_filter end end |
Instance Method Details
#process(*args) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/cell/filters.rb', line 13 def process(*args) run_hook(:before_filter, *args) content = super run_hook(:after_filter, *args) content end |