Module: Mongoid::Extensions::Boolean::Conversions

Included in:
Boolean
Defined in:
lib/mongoid/extensions/boolean/conversions.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#cast(value) ⇒ Object



5
6
7
8
# File 'lib/mongoid/extensions/boolean/conversions.rb', line 5

def cast(value)
  return true if value == "true"
  false
end