mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
factory method for creating ON nodes
This commit is contained in:
parent
2d320e366a
commit
99ae19edd3
1 changed files with 4 additions and 0 deletions
|
@ -13,5 +13,9 @@ module Arel
|
|||
def create_and clauses
|
||||
Nodes::And.new clauses
|
||||
end
|
||||
|
||||
def create_on expr
|
||||
Nodes::On.new expr
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue