Module: N::Filtering
- Included in:
- Controller
- Defined in:
- lib/nitro/filters.rb
Overview
Filtering functionality for renders/services. The design and implementation is HEAVILY influenced by Rails.
Examples
Filter as class:
class TouchFilter end
Filter before filter after – TODO: implement inheritable filters. ++
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.append_features(base) ⇒ Object
Ruby is sometimes VERY surprising, the following trick is needed to include singleton methods in other classes.
Class Method Details
.append_features(base) ⇒ Object
Ruby is sometimes VERY surprising, the following trick is needed to include singleton methods in other classes.
31 32 33 |
# File 'lib/nitro/filters.rb', line 31 def self.append_features(base) super; base.extend(ClassMethods) end |