mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
we can visit DateTime
This commit is contained in:
parent
ac2bdd1dd3
commit
5eaf76df2d
2 changed files with 5 additions and 0 deletions
|
@ -168,6 +168,7 @@ module Arel
|
|||
def visit_Symbol o; quote(o) end
|
||||
def visit_Time o; quote(o) end
|
||||
def visit_Date o; quote(o) end
|
||||
def visit_DateTime o; quote(o) end
|
||||
def visit_Float o; quote(o) end
|
||||
def visit_BigDecimal o; quote(o) end
|
||||
|
||||
|
|
|
@ -8,6 +8,10 @@ module Arel
|
|||
@attr = Table.new(:users)[:id]
|
||||
end
|
||||
|
||||
it "should visit_DateTime" do
|
||||
@visitor.accept DateTime.now
|
||||
end
|
||||
|
||||
it "should visit_Float" do
|
||||
@visitor.accept 2.14
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue