Вопросы по теме 'ancestry'
Как получить всех потомков объекта в Ruby on Rails
У меня есть модели, связанные следующим образом:
GrandParent
has_many :kids
has_many :grand_children, through: :kids
Kid
belongs_to :grand_parent
has_many :grand_kids
GrandKid
belongs_to :kid
Я просто хотел бы вызвать .descendants...
852 просмотров
schedule
17.03.2024