aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/date_time.rb
blob: e1cc9cee4ab8195ad33333c9bf27b39327998c73 (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 DateTime < Value # :nodoc:
        def type
          :datetime
        end

        private

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