Sha256: 2d185f385a9f1aa49546986f30707897f2783cf92c2b5201cd8c1503461667aa

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

# An individual record of a certain type may be flagged into a feature with
# this class.
class ActiveRecord::Rollout::FlaggableFlag < 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/flaggable_flag.rb