From 368b1c6c42545726da25debfc9a2a5e6e4aaaa8c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 8 Sep 2010 14:45:38 -0700 Subject: we can visit big decimal --- lib/arel/visitors/to_sql.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/arel/visitors/to_sql.rb') diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index ada8aa6a16..2a96444d59 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -1,3 +1,5 @@ +require 'bigdecimal' + module Arel module Visitors class ToSql @@ -137,6 +139,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_BigDecimal o; quote(o) end DISPATCH = {} def visit object -- cgit v1.2.3