module Mongoid::DistributeTree
Public Instance Methods
distribute_with_children(distribute_urls = nil;)
click to toggle source
# File lib/distribute_tree.rb, line 29 def distribute_with_children distribute_urls = nil; Utils.distribute self, distribute_urls, true end
distribute_without_children(distribute_urls = nil;)
click to toggle source
不递归 和 递归 两种
# File lib/distribute_tree.rb, line 28 def distribute_without_children distribute_urls = nil; Utils.distribute self, distribute_urls, false end