diff options
Diffstat (limited to 'lib/arel/algebra/attributes/decimal.rb')
-rw-r--r-- | lib/arel/algebra/attributes/decimal.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/arel/algebra/attributes/decimal.rb b/lib/arel/algebra/attributes/decimal.rb new file mode 100644 index 0000000000..bf6587fa34 --- /dev/null +++ b/lib/arel/algebra/attributes/decimal.rb @@ -0,0 +1,9 @@ +module Arel + module Attributes + class Decimal < Attribute + def type_cast(val) + type_cast_to_numeric(val, :to_d) + end + end + end +end |