Sha256: c89ffb94acefc3fda7b4e8f23a19e5c8924553f5f8a559181f899905209cdda6
Contents?: true
Size: 188 Bytes
Versions: 17
Compression:
Stored size: 188 Bytes
Contents
class Boolean def self.parse(value) ActiveRecord::Type::Boolean.new.cast(value) end end class Object def yes_no_to_s !!self == self ? (self ? 'yes' : 'no') : to_s end end
Version data entries
17 entries across 17 versions & 1 rubygems