diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-08 14:45:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-08 14:45:38 -0700 |
commit | 368b1c6c42545726da25debfc9a2a5e6e4aaaa8c (patch) | |
tree | e62cee496b540ef5b0bd0d9e14b8b3d7dd1c48e1 /lib/arel | |
parent | 7b8944cb7662509d7ba6869ff571518ac7f848ea (diff) | |
download | rails-368b1c6c42545726da25debfc9a2a5e6e4aaaa8c.tar.gz rails-368b1c6c42545726da25debfc9a2a5e6e4aaaa8c.tar.bz2 rails-368b1c6c42545726da25debfc9a2a5e6e4aaaa8c.zip |
we can visit big decimal
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |