aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/date.rb
blob: 9208da6efe176f5831f40cffc8633af0a714c5ae (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 Date < Value # :nodoc:
        def type
          :date
        end

        private

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