Module: SimpleSwitch::SharedMethods
- Included in:
- ActionController::Base, ActiveRecord::Base, ActiveRecord::Base
- Defined in:
- lib/simple_switch/shared_methods.rb
Instance Method Summary collapse
Instance Method Details
#feature_off?(feature) ⇒ Boolean
8 9 10 |
# File 'lib/simple_switch/shared_methods.rb', line 8 def feature_off?(feature) !feature_on?(feature) end |
#feature_on?(feature) ⇒ Boolean
4 5 6 |
# File 'lib/simple_switch/shared_methods.rb', line 4 def feature_on?(feature) SimpleSwitch.feature_manager.on?(feature) end |