Shouldn't this work: RAILS_ENV.development?

I think some time ago I heard that some method missing functionality had been added to the string class so that you could write:

string == 'mystring'

like this:


I tried this with Rails 2.1 and it's either not working or I got the syntax wrong... or is this feature only in Edge Rails??