calagator/calagator — pull request #31 by jeffweiss (2013-04-06 20:56:09+00:00)
Title: (#180) Strip whitespace from venue fields

Prior to this commit, Calagator would allow venues to have leading or
trailing spaces persisted in the database, which would lead to venues
having postal codes such as `'97209 '`, thereby reducing the likelihood of
finding duplicates. This commit forcibly strips whitespace from venue
fields during validation by adding `strip_whitespace!` to the
ActiveRecord DSL, technically in the `before_validation` stage.