Sha256: 704af2daaaaa4b28ddd0d1dabbd4cde20a0ca462d0ee30ebe26477d5d758970d

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

module Arel
  module Nodes
    module JoinSourceExt
      def initialize(...)
        super
        @aost = nil
      end

      def hash
        [*super, aost].hash
      end

      def eql?(other)
        super && aost == other.aost
      end
      alias_method :==, :eql?
    end
    JoinSource.attr_accessor :aost
    JoinSource.prepend JoinSourceExt
  end
  module SelectManagerExt
    def aost(time)
      @ctx.source.aost = time
      nil
    end
  end
  SelectManager.prepend SelectManagerExt
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-cockroachdb-adapter-7.1.1 lib/arel/nodes/join_source_ext.rb
activerecord-cockroachdb-adapter-7.1.0 lib/arel/nodes/join_source_ext.rb