Sha256: 80ebc8750e894e91cde896109d824d3890c7089a6f4f59cb54ab82e7d2d00397
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module Clowne module Adapters # :nodoc: all class Sequel module Associations class ManyToMany < Base def call(record) clones = with_scope .lazy .map(&method(:clone_one)) .map(&method(:record_wrapper)) .to_a record_wrapper(record).remember_assoc(:"#{association_name}_attributes", clones) record end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clowne-1.1.0 | lib/clowne/adapters/sequel/associations/many_to_many.rb |
clowne-1.0.0 | lib/clowne/adapters/sequel/associations/many_to_many.rb |