Module: Mongoid::FeatureFlags::ClassMethods
- Defined in:
- lib/mongoid_feature_flags.rb
Instance Method Summary collapse
Instance Method Details
#include_generated_features_from(*methods) ⇒ Object
27 28 29 30 |
# File 'lib/mongoid_feature_flags.rb', line 27 def include_generated_features_from(*methods) @feature_flag_methods += methods @feature_flag_methods.uniq! end |
#inherits_features_from(*relative) ⇒ Object
22 23 24 25 |
# File 'lib/mongoid_feature_flags.rb', line 22 def inherits_features_from(*relative) @feature_flag_parents += relative @feature_flag_parents.uniq! end |