Module: Mongoid::Acts::NestedSet::OutlineNumber::InstanceMethods
- Defined in:
- lib/mongoid_nested_set/outline_number.rb
Instance Method Summary collapse
- #outline_number ⇒ Object
- #update_descendants_outline_number ⇒ Object
- #update_outline_number ⇒ Object
- #update_self_and_descendants_outline_number ⇒ Object
Instance Method Details
#outline_number ⇒ Object
74 75 76 |
# File 'lib/mongoid_nested_set/outline_number.rb', line 74 def outline_number self[outline_number_field_name] end |
#update_descendants_outline_number ⇒ Object
89 90 91 |
# File 'lib/mongoid_nested_set/outline_number.rb', line 89 def update_descendants_outline_number self.class.update_outline_numbers(self.descendants, self.outline_number) end |
#update_outline_number ⇒ Object
79 80 81 |
# File 'lib/mongoid_nested_set/outline_number.rb', line 79 def update_outline_number self.class.update_outline_numbers(self) end |
#update_self_and_descendants_outline_number ⇒ Object
84 85 86 |
# File 'lib/mongoid_nested_set/outline_number.rb', line 84 def update_self_and_descendants_outline_number self.class.update_outline_numbers(self_and_descendants) end |