aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/decimal.rb
blob: 91957fe84b5289a4cf8b3279c67c61a1e846a208 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                     

                       


                  





                                        



         
module ActiveRecord
  module ConnectionAdapters
    module Type
      class Decimal < Value # :nodoc:
        include Numeric

        def type
          :decimal
        end

        private

        def cast_value(value)
          Column.value_to_decimal(value)
        end
      end
    end
  end
end