Module: Plotline::Concerns::Family
- Extended by:
- ActiveSupport::Concern
- Included in:
- Entry
- Defined in:
- app/models/plotline/concerns/family.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#can_have_parent? ⇒ Boolean
26 27 28 |
# File 'app/models/plotline/concerns/family.rb', line 26 def can_have_parent? self.class.parent_entry.present? end |
#possible_parents ⇒ Object
30 31 32 |
# File 'app/models/plotline/concerns/family.rb', line 30 def possible_parents Plotline::Entry.where(type: self.class.parent_entry) end |