Module: ThroughHierarchy::Base::ClassMethods
- Defined in:
- lib/through_hierarchy/base.rb
Instance Method Summary collapse
Instance Method Details
#joins_through_hierarchy(name) ⇒ Object
21 22 23 24 |
# File 'lib/through_hierarchy/base.rb', line 21 def joins_through_hierarchy(name) hierarchical_associations.key?(name) or raise ThroughHierarchyAssociationMissingError, "No association named #{name} was found. Perhaps you misspelled it?" hierarchical_associations[name].join end |