]> cat aescling's git repositories - mastodon.git/commit
Squish username before validation (#10239)
authorAurélien Reeves <aurelien.reeves@hiptest.net>
Mon, 11 Mar 2019 19:48:24 +0000 (20:48 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 11 Mar 2019 19:48:24 +0000 (20:48 +0100)
commit85537b00695b1091e2a147597ab7c3557b150b11
treecf722bd91358600bbcb751dc0abee98166daa1c3
parentf5eeac01047874269bbb2910bab4b32f739c616d
Squish username before validation (#10239)

* Squish username before validation (#10101)

Fix #10101

* Move before_validation hook to a private method

Also add Unicode wite-spaces to the spec to support the use of squish
over strip.
app/models/account.rb
spec/models/account_spec.rb