1
0
Fork 0
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:
Aaron Patterson 2010-09-10 09:51:03 -07:00
parent ac2bdd1dd3
commit 5eaf76df2d
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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