Permalink
Browse files

HEROKU_ENV is no longer a good test for checking if we're on heroku. …

…Now checking for any env variable starting with HEROKU_. Closes #21
  • Loading branch information...
1 parent 8314a4e commit 23fddefc5172d8287d11eb7fea77bda66c54e17f @augustl augustl committed Jan 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/more.rb
View
@@ -75,7 +75,7 @@ def get_cvar(cvar)
# Returns true if the app is running on Heroku. When +heroku?+ is true,
# +page_cache?+ will always be false.
def heroku?
- !!ENV["HEROKU_ENV"]
+ ENV.any? {|key, value| key =~ /^heroku/i }
end
# Returns the LESS source path, see `source_path=`

0 comments on commit 23fddef

Please sign in to comment.