blob: 0d6c12e65bcc5db100d630347ffacb43e3936531 (
plain) (
tree)
|
|
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
|