Module: Mongoid::Acts::Tree::Fields

Defined in:
lib/mongoid_acts_as_tree.rb

Instance Method Summary collapse

Instance Method Details

#depth_fieldObject



263
264
265
# File 'lib/mongoid_acts_as_tree.rb', line 263

def depth_field
  acts_as_tree_options[:depth_field]
end

#parent_id_fieldObject



255
256
257
# File 'lib/mongoid_acts_as_tree.rb', line 255

def parent_id_field
  acts_as_tree_options[:parent_id_field]
end

#path_fieldObject



259
260
261
# File 'lib/mongoid_acts_as_tree.rb', line 259

def path_field
  acts_as_tree_options[:path_field]
end

#tree_orderObject



267
268
269
# File 'lib/mongoid_acts_as_tree.rb', line 267

def tree_order
  acts_as_tree_options[:order] or []
end