Sha256: 5bef662c6020244fff2587d4055b47114db4123654a87160ab962e8c0ac01675

Contents?: true

Size: 589 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
clowne-1.1.0 lib/clowne/adapters/sequel/associations/base.rb
clowne-1.0.0 lib/clowne/adapters/sequel/associations/base.rb