aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type/value.rb
blob: a83f0e652d4485ff5926dc3791be16c5e24eb9b1 (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 Value # :nodoc:
        def type; end

        def type_cast(value)
          cast_value(value) unless value.nil?
        end

        private

        def cast_value(value)
          value
        end
      end
    end
  end
end