rails/rails — pull request #16496 by Robovirtuoso (2014-08-13 18:16:53+00:00)
Title: Normalize string for `StringInquirer`

Currently strings are not normalized when inquired.

```ruby
" production".inquiry.production?
#=> false

"Production".inquiry.production?
#=> false

"\nPRODUCTION".inquiry.production?
#=> false
```

To inquiry strings like that you have to write the following

```ruby
"Production".inquiry.Production?
#=> true

" production".inquiry.send(" production?")
#=> true
```

This is of course very displeasing to the eye.

What we care about is the content of the string, which should be agnostic to it's casing and whitespace.