mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
implementing locked
This commit is contained in:
parent
e4e81cdcf0
commit
84e8875c55
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue