Class: Fickle::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/fickle/application_controller.rb

Direct Known Subclasses

FeaturesController, ModelFeaturesController

Instance Method Summary collapse

Instance Method Details

#get_backendObject



14
15
16
# File 'app/controllers/fickle/application_controller.rb', line 14

def get_backend
  @backend = Fickle::Config.backend
end

#get_featuresObject



10
11
12
# File 'app/controllers/fickle/application_controller.rb', line 10

def get_features
  @features = Fickle::Config.backend.feature_set('global')
end

#get_modelsObject



6
7
8
# File 'app/controllers/fickle/application_controller.rb', line 6

def get_models
  @models = Fickle::Config.backend.models
end

#get_overridesObject



18
19
20
# File 'app/controllers/fickle/application_controller.rb', line 18

def get_overrides
  @overrides = Fickle::Config.backend.feature_set('master')
end