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



                                     

                       


                  





                                        



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

        def type
          :integer
        end

        private

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