Sha256: 6018c399b68a41aa311e54e5cbaf452a1b6878cd17a41422c3240bab910c3d13

Contents?: true

Size: 589 Bytes

Versions: 4

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

require "clowne/adapters/base/association"

module Clowne
  module Adapters # :nodoc: all
    class Sequel
      module Associations
        class Base < Base::Association
          private

          def init_scope
            @_init_scope ||= source.__send__([association_name, "dataset"].join("_"))
          end

          def record_wrapper(record)
            operation.record_wrapper(record)
          end

          def operation
            @_operation ||= adapter.class.operation_class.current
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clowne-1.5.0 lib/clowne/adapters/sequel/associations/base.rb
clowne-1.4.0 lib/clowne/adapters/sequel/associations/base.rb
clowne-1.3.0 lib/clowne/adapters/sequel/associations/base.rb
clowne-1.2.0 lib/clowne/adapters/sequel/associations/base.rb