Table of Contents - mongoid-ancestry-0.4.2 Documentation
Pages
-
README
- Mongoid-ancestry
- Installation
- It’s Rails 3+ only.
- Mongoid compatibility
- Organising records into a tree
- Note: It doesn’t work with
.create!
at the moment(mongoid bug? needs more investigation). But it absolutely will be fixed. - Navigating your tree
- Options for has_ancestry
- Scopes
- Selecting nodes by depth
- STI support
- Arrangement
- Migrating from plugin that uses parent_id column
- Integrity checking and restoration
- Tests
- Internals
- Contact and copyright
Classes and Modules
- Mongoid
- Mongoid::Ancestry
- Mongoid::Ancestry::ClassMethods
- Mongoid::Ancestry::Error
- Mongoid::Ancestry::IntegrityError
Methods
- ::mongoid2? — Mongoid
- ::mongoid3? — Mongoid
- #ancestor_conditions — Mongoid::Ancestry
- #ancestor_ids — Mongoid::Ancestry
- #ancestors — Mongoid::Ancestry
- #ancestry_callbacks_disabled? — Mongoid::Ancestry
- #ancestry_exclude_self — Mongoid::Ancestry
- #apply_orphan_strategy — Mongoid::Ancestry
- #arrange — Mongoid::Ancestry::ClassMethods
- #bson_objectid_from_string — Mongoid::Ancestry
- #build_ancestry_from_parent_ids! — Mongoid::Ancestry::ClassMethods
- #cache_depth — Mongoid::Ancestry
- #cast_primary_key — Mongoid::Ancestry
- #check_ancestry_integrity! — Mongoid::Ancestry::ClassMethods
- #child_ancestry — Mongoid::Ancestry
- #child_conditions — Mongoid::Ancestry
- #child_ids — Mongoid::Ancestry
- #children — Mongoid::Ancestry
- #depth — Mongoid::Ancestry
- #descendant_conditions — Mongoid::Ancestry
- #descendant_ids — Mongoid::Ancestry
- #descendants — Mongoid::Ancestry
- #has_ancestry — Mongoid::Ancestry::ClassMethods
- #has_children? — Mongoid::Ancestry
- #has_siblings? — Mongoid::Ancestry
- #is_childless? — Mongoid::Ancestry
- #is_only_child? — Mongoid::Ancestry
- #is_primary_key_type_bson_objectid? — Mongoid::Ancestry
- #is_root? — Mongoid::Ancestry
- #orphan_strategy= — Mongoid::Ancestry::ClassMethods
- #parent — Mongoid::Ancestry
- #parent= — Mongoid::Ancestry
- #parent_id — Mongoid::Ancestry
- #parent_id= — Mongoid::Ancestry
- #path — Mongoid::Ancestry
- #path_conditions — Mongoid::Ancestry
- #path_ids — Mongoid::Ancestry
- #primary_key_type — Mongoid::Ancestry
- #rebuild_depth_cache! — Mongoid::Ancestry::ClassMethods
- #restore_ancestry_integrity! — Mongoid::Ancestry::ClassMethods
- #root — Mongoid::Ancestry
- #root_id — Mongoid::Ancestry
- #scope_depth — Mongoid::Ancestry::ClassMethods
- #sibling_conditions — Mongoid::Ancestry
- #sibling_ids — Mongoid::Ancestry
- #siblings — Mongoid::Ancestry
- #subtree — Mongoid::Ancestry
- #subtree_conditions — Mongoid::Ancestry
- #subtree_ids — Mongoid::Ancestry
- #to_node — Mongoid::Ancestry::ClassMethods
- #touch_parent — Mongoid::Ancestry
- #update_descendants_with_new_ancestry — Mongoid::Ancestry
- #without_ancestry_callbacks — Mongoid::Ancestry