Revision 9e312588
Added by Tomer Brisker about 9 years ago
app/services/puppet_class_importer.rb | ||
---|---|---|
end
|
||
|
||
def db_environments
|
||
@foreman_envs ||= (Environment.all.map(&:name) - ignored_environments)
|
||
@foreman_envs ||= (Environment.pluck('environments.name') - ignored_environments)
|
||
end
|
||
|
||
def actual_environments
|
Also available in: Unified diff
Fixes #9593 - replace .all.map(&:<attr>) with .pluck(:attr)