Module: Mongoid::Acts::NestedSet::OutlineNumber::InstanceMethods

Defined in:
lib/mongoid_nested_set/outline_number.rb

Instance Method Summary collapse

Instance Method Details

#outline_numberObject



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_numberObject



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_numberObject



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_numberObject



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