Sha256: 6a0268b4e695deed7b8aaa32560ac716b4b4bbd303e0719ef24315719898a87c

Contents?: true

Size: 256 Bytes

Versions: 10

Compression:

Stored size: 256 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::FlaggableFlag
  validates_uniqueness_of :feature_id, scope: [:flaggable_type, :flaggable_id]
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
detour-0.0.15 app/models/detour/opt_out_flag.rb
detour-0.0.14 app/models/detour/opt_out_flag.rb
detour-0.0.13 app/models/detour/opt_out_flag.rb
detour-0.0.12 app/models/detour/opt_out_flag.rb
detour-0.0.11 app/models/detour/opt_out_flag.rb
detour-0.0.10 app/models/detour/opt_out_flag.rb
detour-0.0.9 app/models/detour/opt_out_flag.rb
detour-0.0.7 app/models/detour/opt_out_flag.rb
detour-0.0.6 app/models/detour/opt_out_flag.rb
detour-0.0.5 app/models/detour/opt_out_flag.rb