postgres_tree 0.0.1
Include PostgresTree::ActiveRecordConcern in your models along with a parent_id field and get access to ancestors and descendents in one query.
Gemfile:
=
安裝:
=
Runtime 相依性套件 (1):
rails
~> 4.0