module Mongoid::CollectionSeparated
Constants
- VERSION
Public Instance Methods
separated_by(separated_field, calc_collection_name_fun, opts={})
click to toggle source
# File lib/mongoid/collection_separated.rb, line 14 def separated_by separated_field, calc_collection_name_fun, opts={} @separated_parent_class = opts[:parent_class].constantize @separated_parent_field = opts[:parent_field] || :id @separated_field = separated_field @calc_collection_name_fun = calc_collection_name_fun end