plataformatec/devise — pull request #3202 by salmanasiddiqui (2014-09-11 01:49:33+00:00)
Title: Added squeeze_whitespace_keys, to squeeze spaces in the fields like Name

Added `squeeze_whitespace_keys`, so that spaces in fields like `full_name` can be squeezed.

For instance, if a user enters `full_name` as

' foo bar '

then it will be stored as

' foo bar '

The user with `full_name` as

' foo bar '

will also be searchable by

' foo bar '

If the `full_name` key is also added to `strip_whitespace_keys`, then it will strip the remaining leading and trailing spaces too.

So,

' foo bar '

will be stored as

'foo bar'

The user with `full_name` as

'foo bar'

will also be searchable by

' foo bar '