Module: Flipside::Entities
- Included in:
- Feature
- Defined in:
- app/models/flipside/entities.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/models/flipside/entities.rb', line 7 def self.included(base) base.has_many :entities, foreign_key: :feature_id base.add_check do |entity| entity && entities.where(flippable: entity).exists? end end |