aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/float.rb
blob: 2d436d4aa360e3a6b25266a50f41f6d8e0bdcff1 (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 Float < Value # :nodoc:
        def type
          :float
        end

        private

        def cast_value(value)
          value.to_f
        end
      end
    end
  end
end