aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/time.rb
blob: b621e8f39ce0857828a5dae3d7e48a2abd2bbeea (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 Time < Value # :nodoc:
        include TimeValue

        def type
          :time
        end

        private

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