:hocho: 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.
rmm5t/strip_attributes has 651 GitHub stars.
It currently ranks #6593 daily, #7870 weekly, #11905 monthly by momentum on Trending Repos; its best-ever rank is #15.