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.

databaseorm
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.

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 footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
28 hits · last 30 days
gptbot
3
amazonbot
3
bytedance
3
claudebot
3
bingbot
1
mj12bot
1
ahrefsbot
1
Resources