laserlemon/figaro — pull request #39 by MarkDBlackwell (2013-03-02 02:23:27+00:00)
Title: Use the true Heroku Rails environment

Fixes issues #35 and #34 (Bundler Ruby version error). All tests pass.

In the case that a user sets RAILS_ENV in Heroku config, that works okay, too.

Heroku respects that, and sets its internal value for the Rails environment, which we access.