Sha256: a679961cd5b40a4a9723862f118a2d8fa2b0fcce6d699c07c58ddce557015e5c
Contents?: true
Size: 395 Bytes
Versions: 19
Compression:
Stored size: 395 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? begin Integer(value) rescue ArgumentError => e value end end def get(value) value end end end end end
Version data entries
19 entries across 19 versions & 3 rubygems