Class: Float

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

Class Method Summary collapse

Class Method Details

.to_mongo(value) ⇒ Object



57
58
59
# File 'lib/mongomapper/support.rb', line 57

def self.to_mongo(value)
  value.to_f
end