Module: Detour
- Defined in:
- lib/detour.rb,
lib/detour/engine.rb,
lib/detour/version.rb
Defined Under Namespace
Modules: ActsAsFlaggable, ApplicationHelper, Concerns, Flaggable, FlaggableFlagsHelper, FlagsHelper Classes: ApplicationController, Configuration, DatabaseGroupFlag, DefinedGroup, DefinedGroupFlag, Engine, Feature, FeaturesController, Flag, FlagForm, FlagInFlag, FlaggableFlag, FlaggableFlagsController, FlagsController, Group, GroupsController, Membership, OptOutFlag, PercentageFlag
Constant Summary collapse
- VERSION =
"0.0.15"
Class Method Summary collapse
- .config ⇒ Object
-
.configure(&block) ⇒ Object
Allows for configuration of Detour::Feature, mostly intended for defining groups:.
Class Method Details
.config ⇒ Object
24 25 26 |
# File 'lib/detour.rb', line 24 def self.config @config ||= Detour::Configuration.new end |
.configure(&block) ⇒ Object
Allows for configuration of Detour::Feature, mostly intended for defining groups:
17 18 19 20 21 22 |
# File 'lib/detour.rb', line 17 def self.configure(&block) ActionDispatch::Reloader.to_prepare do yield Detour.config Detour.config.flaggable_types.each { |f| f.constantize } end end |