Class: Boolean

Inherits:
Object show all
Defined in:
lib/mongomapper/support.rb

Class Method Summary collapse

Class Method Details

.mm_typecast(value) ⇒ Object



6
7
8
# File 'lib/mongomapper/support.rb', line 6

def self.mm_typecast(value)
  ['true', 't', '1'].include?(value.to_s.downcase)
end