Sha256: 2e13ff8abde0f17ab8da285d5b0f18db1aa578e550d62faf14688f90271ddab4

Contents?: true

Size: 249 Bytes

Versions: 9

Compression:

Stored size: 249 Bytes

Contents

module Arel
  class Lock < Compound
    attributes :relation, :locked
    deriving :initialize, :==

    def initialize(relation, locked, &block)
      @relation = relation
      @locked   = locked.blank? ? " FOR UPDATE" : locked
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
arel-compat-0.4.0 lib/arel/algebra/relations/operations/lock.rb
arel-0.4.0 lib/arel/algebra/relations/operations/lock.rb
arel-0.3.3 lib/arel/algebra/relations/operations/lock.rb
arel-0.3.2 lib/arel/algebra/relations/operations/lock.rb
arel-0.3.1 lib/arel/algebra/relations/operations/lock.rb
arel-0.3.0 lib/arel/algebra/relations/operations/lock.rb
arel-0.2.1 lib/arel/algebra/relations/operations/lock.rb
arel-0.2.0 lib/arel/algebra/relations/operations/lock.rb
arel-0.2.pre lib/arel/algebra/relations/operations/lock.rb