Module: Mongoid::Extensions::Boolean::Conversions::ClassMethods
- Defined in:
- lib/mongoid/extensions/boolean/conversions.rb
Overview
:nodoc
Instance Method Summary collapse
Instance Method Details
#get(value) ⇒ Object
20 21 22 |
# File 'lib/mongoid/extensions/boolean/conversions.rb', line 20 def get(value) value end |
#set(value) ⇒ Object
15 16 17 18 |
# File 'lib/mongoid/extensions/boolean/conversions.rb', line 15 def set(value) value = BOOLEAN_MAP[value] value.nil? ? nil : value end |