Module: Mongoid::Acts::NestedSet::Fields

Included in:
Document::ClassMethods, Document::InstanceMethods
Defined in:
lib/mongoid_nested_set/fields.rb

Overview

Mixed int both classes and instances to provide easy access to the field names

Instance Method Summary (collapse)

Instance Method Details

- (Object) left_field_name



6
7
8
# File 'lib/mongoid_nested_set/fields.rb', line 6

def left_field_name
  acts_as_nested_set_options[:left_field]
end

- (Object) outline_number_field_name



21
22
23
# File 'lib/mongoid_nested_set/fields.rb', line 21

def outline_number_field_name
  acts_as_nested_set_options[:outline_number_field]
end

- (Object) parent_field_name



16
17
18
# File 'lib/mongoid_nested_set/fields.rb', line 16

def parent_field_name
  acts_as_nested_set_options[:parent_field]
end

- (Object) quoted_left_field_name



36
37
38
39
# File 'lib/mongoid_nested_set/fields.rb', line 36

def quoted_left_field_name
  # TODO
  left_field_name
end

- (Object) quoted_parent_field_name



48
49
50
51
# File 'lib/mongoid_nested_set/fields.rb', line 48

def quoted_parent_field_name
  # TODO
  parent_field_name
end

- (Object) quoted_right_field_name



42
43
44
45
# File 'lib/mongoid_nested_set/fields.rb', line 42

def quoted_right_field_name
  # TODO
  right_field_name
end

- (Object) quoted_scope_field_names



54
55
56
57
# File 'lib/mongoid_nested_set/fields.rb', line 54

def quoted_scope_field_names
  # TODO
  scope_field_names
end

- (Object) right_field_name



11
12
13
# File 'lib/mongoid_nested_set/fields.rb', line 11

def right_field_name
  acts_as_nested_set_options[:right_field]
end

- (Object) scope_class



31
32
33
# File 'lib/mongoid_nested_set/fields.rb', line 31

def scope_class
  acts_as_nested_set_options[:klass]
end

- (Object) scope_field_names



26
27
28
# File 'lib/mongoid_nested_set/fields.rb', line 26

def scope_field_names
  Array(acts_as_nested_set_options[:scope])
end