Module: Mongoid::Mirrored

Defined in:
lib/mongoid-mirrored/version.rb,
lib/mongoid-mirrored/mirrored_in.rb,
lib/mongoid-mirrored/helper_methods.rb,
lib/mongoid-mirrored/root/root_methods.rb,
lib/mongoid-mirrored/mirror/mirror_methods.rb

Defined Under Namespace

Modules: ClassMethods, HelperMethods, MirrorMethods, RootMethods

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
# File 'lib/mongoid-mirrored/mirrored_in.rb', line 7

def self.included(base)
  base.send(:extend, ClassMethods)
  base.send :cattr_accessor, :embedding_models
  base.send :cattr_accessor, :embedding_options
  base.send :cattr_accessor, :mirror_klass
end