class Attrocity::Coercers::Integer
Public Instance Methods
coerce(value)
click to toggle source
# File lib/attrocity/coercers/integer.rb, line 4 def coerce(value) if value.nil? || value.to_s.empty? nil else Integer(value) end end