Sha256: f464c2a73f62fc984eafac8f1aed872ccd843f9b90edca799112b0895eeec872

Contents?: true

Size: 266 Bytes

Versions: 29

Compression:

Stored size: 266 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Extensions #:nodoc:
    module Float #:nodoc:
      module Conversions #:nodoc:
        def set(value)
          value.to_f
        end
        def get(value)
          value
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
mongoid-1.0.2 lib/mongoid/extensions/float/conversions.rb
mongoid-1.0.1 lib/mongoid/extensions/float/conversions.rb
mongoid-1.0.0 lib/mongoid/extensions/float/conversions.rb
mongoid-0.12.0 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.9 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.8 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.7 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.6 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.5 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.4 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.3 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.2 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.1 lib/mongoid/extensions/float/conversions.rb
mongoid-0.11.0 lib/mongoid/extensions/float/conversions.rb
mongoid-0.10.6 lib/mongoid/extensions/float/conversions.rb
mongoid-0.10.5 lib/mongoid/extensions/float/conversions.rb
mongoid-0.10.4 lib/mongoid/extensions/float/conversions.rb
mongoid-0.10.3 lib/mongoid/extensions/float/conversions.rb
mongoid-0.10.2 lib/mongoid/extensions/float/conversions.rb
mongoid-0.10.1 lib/mongoid/extensions/float/conversions.rb