Sha256: e43a6ee48e8bfa4782b2c1b800a3cdc6a80bbcb7a6ac13af30a365336149bfae

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

module Mongoo
  module Embedded
    module CoreMixin
      extend ActiveSupport::Concern

      module ClassMethods
      end # ClassMethods

      module InstanceMethods
        def embedded_hash_proxy(attrib, klass)
          Mongoo::Embedded::HashProxy.new(self, attrib, klass)
        end

        def embedded_doc(attrib, klass)
          klass.new(self, attrib)
        end
      end # InstanceMethods
    end # CoreMixin
  end # Embedded
end # Mongoo

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoo-0.5.2 lib/mongoo/embedded/core_mixin.rb
mongoo-0.5.1 lib/mongoo/embedded/core_mixin.rb
mongoo-0.5.0 lib/mongoo/embedded/core_mixin.rb