I have remotes created on Heroku for production and production.
During the installation process, I installed the envs application to include:
RACK_ENV=staging RAILS_ENV=staging
I would like to be able to specify the staging group in my Gemfile in the same way that I can currently use production , test or assets :
group :staging do gem "example", "~> 0.9" end
I understand how to add user groups. From my application.rb :
groups = { assets: %w(development test) } Bundler.require(:security, :model, :view, *Rails.groups(groups))
But how to add a group that only loads in stage?
I tried without success:
groups = { assets: %w(development test), staging: %(staging) } Bundler.require(:security, :model, :view, *Rails.groups(groups))
source share