Class Feature::Repository::ActiveRecordRepository
In: lib/feature/repository/active_record_repository.rb
Parent: Object

AcitveRecordRepository for active feature list Right now we assume you have at least name:string and active:boolean defined in your table.

Example usage:

  repository = ActiveRecordRepository.new(FeatureToggle)
  repository.add_active_feature(:feature_name)
  # use repository with Feature

Methods

Public Class methods

Constructor

Public Instance methods

Returns list of active features

@return [Array<Symbol>] list of active features

Add an active feature to repository

@param [Symbol] feature the feature to be added

[Validate]