Method: Feature::Repository::ActiveRecordRepository#add_active_feature
- Defined in:
- lib/feature/repository/active_record_repository.rb
#add_active_feature(feature) ⇒ Object
Add an active feature to repository
31 32 33 34 35 |
# File 'lib/feature/repository/active_record_repository.rb', line 31 def add_active_feature(feature) check_feature_is_not_symbol(feature) check_feature_already_in_list(feature) @model.create!(name: feature.to_s, active: true) end |