Sha256: 4794f23d8312fc0f063f6c51f45ba3bfa694ccd4f468f4ba0b569ea3130400cd

Contents?: true

Size: 325 Bytes

Versions: 9

Compression:

Stored size: 325 Bytes

Contents

module ActiveData
  module Model
    module Associations
      class EmbedsAny < Base
      private

        def build_object(attributes)
          reflection.klass.new(attributes)
        end

        def embed_object(object)
          object.instance_variable_set(:@embedder, owner)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_data-1.2.0 lib/active_data/model/associations/embeds_any.rb
active_data-1.1.7 lib/active_data/model/associations/embeds_any.rb
active_data-1.1.6 lib/active_data/model/associations/embeds_any.rb
active_data-1.1.5 lib/active_data/model/associations/embeds_any.rb
active_data-1.1.4 lib/active_data/model/associations/embeds_any.rb
active_data-1.1.3 lib/active_data/model/associations/embeds_any.rb
active_data-1.1.2 lib/active_data/model/associations/embeds_any.rb
active_data-1.1.1 lib/active_data/model/associations/embeds_any.rb
active_data-1.1.0 lib/active_data/model/associations/embeds_any.rb