Sha256: 224a2c9e7c2f96ab579d4cd4ba9b77f046d33a734dc5fc119fb94aa9b470b820
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
# A group of flaggable records of a given class may be flagged into a feature # with this class. class Detour::GroupFlag < Detour::Flag validates_presence_of :group_name validates_uniqueness_of :feature_id, scope: [:flaggable_type, :group_name] attr_writer :to_keep attr_accessible :group_name def to_keep @to_keep || (!marked_for_destruction? && !new_record?) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.3 | app/models/detour/group_flag.rb |
detour-0.0.2 | app/models/detour/group_flag.rb |