Class: ScrubbedString

Inherits:
Virtus::Attribute
  • Object
show all
Defined in:
app/models/form_profiles/va_21686c.rb

Instance Method Summary collapse

Instance Method Details

#coerce(value) ⇒ Object



6
7
8
# File 'app/models/form_profiles/va_21686c.rb', line 6

def coerce(value)
  ['NONE'].include?(value.to_s.upcase) ? '' : value
end