Registry / database / acts-as-tree

acts-as-tree

JSON →
library2.9.1rbrubygemsunverified

A gem that adds simple support for organizing ActiveRecord models into parent–children relationships.

gem install acts_as_tree
INSTALL
IMPORT
SIG · ACTS-AS-TREE
A
acts-as-tree
databaserubyv2.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ActsAsTree
require 'acts_as_tree'

Create a tree structure with ActiveRecord

require 'acts_as_tree' class Category < ActiveRecord::Base acts_as_tree order: 'name' end root = Category.create(name: 'Root') child = root.children.create(name: 'Child')
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.9.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
OpenAI (training)
2
Resources