app/models/detour/opt_out_flag.rb in detour-0.0.3 vs app/models/detour/opt_out_flag.rb in detour-0.0.5
- old
+ new
@@ -1,12 +1,5 @@
# 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
- include Detour::Concerns::CountableFlag
-
- belongs_to :flaggable, polymorphic: true
-
- validates_presence_of :flaggable
+class Detour::OptOutFlag < Detour::FlaggableFlag
validates_uniqueness_of :feature_id, scope: [:flaggable_type, :flaggable_id]
-
- attr_accessible :flaggable
end