GitHub repository: mysociety/strip_attributes
Primary language: Ruby
Description: StripAttributes is an ActiveModel extension that automatically strips all attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.