Sha256: 140c908086ddf42c9ef3a7591aa3a0a00cb71b430a5b76dd7930175e495c1f5c
Contents?: true
Size: 327 Bytes
Versions: 23
Compression:
Stored size: 327 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module Float #:nodoc: module Conversions #:nodoc: def set(value) return nil if value.blank? value =~ /\d/ ? value.to_f : value end def get(value) value end end end end end
Version data entries
23 entries across 23 versions & 2 rubygems