Add RAILS_GROUPS env variable for assets compilation

Maybe I'm just missing something but assets failed to compile for my Rails 3.2 app until I added the RAILS_GROUPS variable. I discovered it by comparing with the command capistrano v2 has been using. Can anyone confirm or refute this issue on Rails 3.2?