1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

implementing locked

This commit is contained in:
Aaron Patterson 2010-09-10 21:40:59 -07:00
parent e4e81cdcf0
commit 84e8875c55

View file

@ -30,6 +30,10 @@ module Arel
self
end
def locked
@head.lock
end
def on *exprs
@ctx.froms.last.constraint = Nodes::On.new(collapse(exprs))
self