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

        private

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