Sha256: aeda25b19560e8fa6fe0234d23455214fba282227634878acf899244dd43001b
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 Bytes
Contents
# An individual record of a certain type may be flagged into a feature with # this class. class Detour::FlaggableFlag < Detour::Flag belongs_to :flaggable, polymorphic: true validates :flaggable_id, presence: true validates :feature_id, uniqueness: { scope: [:flaggable_type, :flaggable_id] } attr_accessible :flaggable end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.1 | lib/detour/flaggable_flag.rb |