Module: Mongoid::Extensions::Float::Conversions

Included in:
Float
Defined in:
lib/mongoid/extensions/float/conversions.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#cast(value) ⇒ Object



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

def cast(value)
  value.to_f
end