Class: FalseClass

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo_odm/core_ext/conversions.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) type_cast(value)



189
190
191
192
# File 'lib/mongo_odm/core_ext/conversions.rb', line 189

def self.type_cast(value)
  return nil if value.nil?
  false
end

Instance Method Details

- (Object) to_mongo



194
195
196
# File 'lib/mongo_odm/core_ext/conversions.rb', line 194

def to_mongo
  self
end