Module: BetaFeature
- Defined in:
- lib/beta_feature.rb,
lib/beta_feature/error.rb,
lib/beta_feature/engine.rb,
lib/beta_feature/flagger.rb,
lib/beta_feature/version.rb,
app/models/beta_feature/setting.rb,
app/models/beta_feature/application_record.rb,
lib/generators/beta_feature/install_generator.rb,
app/controllers/beta_feature/settings_controller.rb,
app/controllers/beta_feature/application_controller.rb,
app/controllers/beta_feature/configurations_controller.rb
Defined Under Namespace
Modules: Flagger, Generators
Classes: ApplicationController, ApplicationRecord, BetaNotDefined, ConfigurationsController, Engine, Error, Setting, SettingsController
Constant Summary
collapse
- VERSION =
'0.2.1'
Class Method Summary
collapse
Class Method Details
.all_betas ⇒ Object
7
8
9
|
# File 'lib/beta_feature.rb', line 7
def self.all_betas
@@all_betas ||= YAML.load_file("#{Rails.root}/config/beta_features.yml").with_indifferent_access
end
|
.in_progress ⇒ Object
11
12
13
|
# File 'lib/beta_feature.rb', line 11
def self.in_progress
@@in_progress_betas ||= all_betas.select {|k, v| v["status"] == 'in_progress'}
end
|
.released ⇒ Object
15
16
17
|
# File 'lib/beta_feature.rb', line 15
def self.released
@@released_betas ||= all_betas.select {|k, v| v["status"] == 'released'}
end
|