Method: Archfiend::Utilities#groups
- Defined in:
- lib/archfiend/application.rb
#groups(*groups) ⇒ Array<string>
Returns all dependency groups for loading based on:
-
The App environment;
-
The environment variable APP_GROUPS;
123 124 125 126 127 128 129 130 |
# File 'lib/archfiend/application.rb', line 123 def groups(*groups) groups.unshift(:default, env.to_sym) env_groups = ENV['APP_GROUPS'] || ENV['RAILS_GROUPS'] groups.concat env_groups.to_s.split(',') groups.compact! groups.uniq! groups end |