Class: ActiveRecord::Rollout

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/rollout/version.rb,
lib/active_record/rollout.rb

Defined Under Namespace

Modules: ActsAsFlaggable, Flaggable Classes: Feature, Flag, FlaggableFlag, GroupFlag, OptOutFlag, PercentageFlag, Task

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.configure {|ActiveRecord::Rollout::Feature| ... } ⇒ Object

Allows for configuration of ActiveRecord::Rollout::Feature, mostly intended for defining groups:

Examples:

ActiveRecord::Rollout.configure do |config|
  config.define_user_group :admins do |user|
    user.admin?
  end
end

Yields:



22
23
24
# File 'lib/active_record/rollout.rb', line 22

def self.configure(&block)
  yield ActiveRecord::Rollout::Feature
end