Module: ActsAsOrderedTree::Columns
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/acts_as_ordered_tree.rb
Overview
Mixed into both classes and instances to provide easy access to the column names
Instance Method Summary collapse
- #children_counter_cache_column ⇒ Object
- #depth_column ⇒ Object
- #parent_column ⇒ Object
- #position_column ⇒ Object
- #scope_column_names ⇒ Object
Instance Method Details
#children_counter_cache_column ⇒ Object
109 110 111 |
# File 'lib/acts_as_ordered_tree.rb', line 109 def children_counter_cache_column [:counter_cache] || nil end |
#depth_column ⇒ Object
105 106 107 |
# File 'lib/acts_as_ordered_tree.rb', line 105 def depth_column [:depth_column] || nil end |
#parent_column ⇒ Object
97 98 99 |
# File 'lib/acts_as_ordered_tree.rb', line 97 def parent_column [:parent_column] end |
#position_column ⇒ Object
101 102 103 |
# File 'lib/acts_as_ordered_tree.rb', line 101 def position_column [:position_column] end |
#scope_column_names ⇒ Object
113 114 115 |
# File 'lib/acts_as_ordered_tree.rb', line 113 def scope_column_names Array([:scope]).compact end |