Sha256: e18435362b6b61b044836ebcc2054b36ae4d8590a4199a382d805556dc90c2b8
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
# An individual record of a certain type may be flagged into a feature with # this class. class Detour::FlagInFlag < Detour::Flag include Detour::Concerns::CountableFlag belongs_to :flaggable, polymorphic: true validates_presence_of :flaggable validates_uniqueness_of :feature_id, scope: [:flaggable_type, :flaggable_id] attr_accessible :flaggable end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.3 | app/models/detour/flag_in_flag.rb |
detour-0.0.2 | app/models/detour/flag_in_flag.rb |