errbit/errbit — pull request #381 by khustochka (2013-01-29 14:31:42+00:00)
Title: Ignore SECRET_TOKEN absense during assets:precompile

`assets:precompile` was failing for me on Heroku because environment variables are not available on assets precompile stage.

This change prevents raising an exception if ENV['SECRET_TOKEN'] is missing during assets precompile stage. It detects assets precompilation stage by checking ENV['RAILS_GROUPS'], it must be equal to `assets`.