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

Defined in:
lib/mongoid_acts_as_tree.rb

Instance Method Summary collapse

Instance Method Details

#depth_fieldObject



261
262
263
# File 'lib/mongoid_acts_as_tree.rb', line 261

def depth_field
	acts_as_tree_options[:depth_field]
end

#parent_id_fieldObject



253
254
255
# File 'lib/mongoid_acts_as_tree.rb', line 253

def parent_id_field
	acts_as_tree_options[:parent_id_field]
end

#path_fieldObject



257
258
259
# File 'lib/mongoid_acts_as_tree.rb', line 257

def path_field
	acts_as_tree_options[:path_field]
end

#tree_orderObject



265
266
267
# File 'lib/mongoid_acts_as_tree.rb', line 265

def tree_order
	acts_as_tree_options[:order] or []
end