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