aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/integer.rb
blob: b839e043ad19c748b654abd99e4b1c6e4b3f7dbc (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 Integer < Value # :nodoc:
        def type
          :integer
        end

        private

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