aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/date_time.rb
blob: 757553cd68c09bdaa59d1f77e1dea36af848e8ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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