Sha256: d7674a33651d4739db218d7cb111f6dfd2a6ca827516c369146cb022c06638aa
Contents?: true
Size: 312 Bytes
Versions: 3
Compression:
Stored size: 312 Bytes
Contents
module ActiveRecord module Type class Boolean < Value # :nodoc: def type :boolean end private def cast_value(value) if value == '' nil else ConnectionAdapters::Column::TRUE_VALUES.include?(value) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activerecord-4.2.0.beta3 | lib/active_record/type/boolean.rb |
activerecord-4.2.0.beta2 | lib/active_record/type/boolean.rb |
activerecord-4.2.0.beta1 | lib/active_record/type/boolean.rb |