Class: Phenomenal::Feature
- Inherits:
-
Object
- Object
- Phenomenal::Feature
- Defined in:
- lib/phenomenal_rails/feature.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.middleware ⇒ Object
6 7 8 |
# File 'lib/phenomenal_rails/feature.rb', line 6 def self.middleware @@middleware end |
.middleware=(middleware) ⇒ Object
2 3 4 |
# File 'lib/phenomenal_rails/feature.rb', line 2 def self.middleware=(middleware) @@middleware=middleware end |
Instance Method Details
#activation_condition(&block) ⇒ Object
10 11 12 13 |
# File 'lib/phenomenal_rails/feature.rb', line 10 def activation_condition(&block) Phenomenal::Feature.middleware.add_condition(self,&block) nil end |