ballantyne/weibo — pull request #14 by lgn21st (2012-06-04 04:11:37+00:00)
Title: Fix "uninitialized constant Rails" exception when using it in Sinatra.

Use ENV['RAILS_ENV'] instead of Rails.env, Rails.env wraps RAILS_ENV.

```
# File railties/lib/rails.rb, line 81
def env
@_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development")
end
```