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


                           
                                      

                         


                   





                                       



         
module ActiveRecord
  module ConnectionAdapters
    module Type
      class DateTime < Value # :nodoc:
        include TimeValue

        def type
          :datetime
        end

        private

        def cast_value(string)
          Column.string_to_time(string)
        end
      end
    end
  end
end