Sha256: 13384463d7e42870074378136bcb13d4df8030e900eb494ea588daf86024b037

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

# Ensures that a feature will never be available to the associated record,
# even in the case of, for example, a 100% flag.
class ActiveRecord::Rollout::OptOutFlag < ActiveRecord::Rollout::Flag
  belongs_to :flaggable, polymorphic: true

  validates :flaggable_id, presence: true

  attr_accessible :flaggable
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_record_rollout-0.0.1 lib/active_record/rollout/opt_out_flag.rb