aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/decimal.rb
blob: 9581cd5964d9f66d86a3c663230cdd98f1c10b01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module ActiveRecord
  module ConnectionAdapters
    module Type
      class Decimal < Value # :nodoc:
        def type
          :decimal
        end

        private

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