Flowdock
method

acts_as_tree

Importance_1
v1.2.6 - Show latest stable - 0 notes - Class: ActiveRecord::Acts::Tree::ClassMethods
acts_as_tree(options = {}) public

Configuration options are:

  • foreign_key - specifies the column name to use for tracking of the tree (default: parent_id)
  • order - makes it possible to sort the children according to this SQL snippet.
  • counter_cache - keeps a count in a children_count column if set to true (default: false).
Show source
Register or log in to add new notes.