class Flipper::UI::Configuration
Constants
- DEFAULT_DESCRIPTIONS_SOURCE
- VALID_BANNER_CLASS_VALUES
Attributes
Public: What should be used to denote you are trying to add multiple actors at once (instead of just a single actor). Default is comma “,”.
Public: What should show up in the form to add actors. This can be different per application since flipper_id's can be whatever an application needs. Defaults to “a flipper id”.
Public: Tired of seeing the awesome message about Cloud? Set this to false and it will go away. Defaults to true.
Public: If you set this, Flipper::UI
will fetch descriptions from your external source. Descriptions for `features` will be shown on `feature` page, and optionally the `features` pages. Defaults to empty block.
Public: Are you feeling lucky? Defaults to true. If set to false, users won't see a videoclip of Taylor Swift when there aren't any features
Public: Should feature descriptions be show on the `features` list page. Default false. Only works when using descriptions.
Public Class Methods
# File lib/flipper/ui/configuration.rb, line 65 def initialize @delete = Option.new("Danger Zone", "Deleting a feature removes it from the list of features and disables it for everyone.") @banner_text = nil @banner_class = 'danger' @feature_creation_enabled = true @feature_removal_enabled = true @fun = true @cloud_recommendation = true @add_actor_placeholder = "a flipper id" @descriptions_source = DEFAULT_DESCRIPTIONS_SOURCE @show_feature_description_in_list = false @actors_separator = ',' end
Public Instance Methods
# File lib/flipper/ui/configuration.rb, line 83 def show_feature_description_in_list? using_descriptions? && @show_feature_description_in_list end
# File lib/flipper/ui/configuration.rb, line 79 def using_descriptions? @descriptions_source != DEFAULT_DESCRIPTIONS_SOURCE end