class FeatureFlagger::ModelSettings

Attributes

entity_name[RW]

Public: entity_name to which entity the model is targeting. Take this yaml file as example:

account:

email_marketing:
    whitelabel:
      description: a rollout
      owner: core

account_in_migration:

email_marketing:
    whitelabel:
      description: a rollout
      owner: core

class Account < ActiveRecord::Base

include FeatureFlagger::Model

feature_flagger do |config|
  config.identifier_field = :cdp_tenant_id
  config.entity_name = :account_in_migration
end
identifier_field[RW]

Public: identifier_field Refers to which field must represent the unique model id.

Public Class Methods

new(arguments) click to toggle source
# File lib/feature_flagger/model_settings.rb, line 3
def initialize(arguments)
  arguments.each do |field, value|
    self.public_send("#{field}=", value)
  end
end