Method: CollectiveIdea::Acts::NestedSet::Model::Relatable#self_and_siblings
- Defined in:
- lib/awesome_nested_set/model/relatable.rb
#self_and_siblings ⇒ Object
Returns the collection of all children of the parent, including self
25 26 27 |
# File 'lib/awesome_nested_set/model/relatable.rb', line 25 def self_and_siblings nested_set_scope.children_of parent_id end |