lib/core/strip_attributes.rb
# Strips whitespace from model fields and converts blank values to nil.
Strips whitespace from model fields and converts blank values to nil.
Strips whitespace from model fields and converts blank values to nil .
def strip_attributes()
    before_validation do |record|
      ::Core::StripAttributes.strip(record)
    end
  end
def strip_attributes ( ) before_validation do | record | :: Core :: StripAttributes . strip ( record ) end end
Strips whitespace from model fields and converts blank values to nil.
Strips whitespace from model fields and converts blank values to nil .