Class: Float

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

Class Method Summary collapse

Class Method Details

.to_mongo(value) ⇒ Object



58
59
60
# File 'lib/mongo_mapper/support.rb', line 58

def self.to_mongo(value)
  value.to_f
end