Sha256: 5f7dd3108a03f17c2c0e82e84f99d8ab53553a1bc8efe6c1c3018777ad2094c4
Contents?: true
Size: 365 Bytes
Versions: 1
Compression:
Stored size: 365 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 Detour::OptOutFlag < 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/opt_out_flag.rb |