Revision f4459c11
Added by David Davis about 8 years ago
app/models/taxonomy.rb | ||
---|---|---|
new.smart_proxies = smart_proxies
|
||
new.subnets = subnets
|
||
new.compute_resources = compute_resources
|
||
new.provisioning_templates = provisioning_templates
|
||
new.provisioning_templates = provisioning_templates
|
||
new.media = media
|
||
new.domains = domains
|
||
new.realms = realms
|
||
... | ... | |
|
||
def assign_default_templates
|
||
Template.where(:default => true).each do |template|
|
||
self.send("#{template.class.to_s.underscore.pluralize}") << template
|
||
self.send((template.class.to_s.underscore.pluralize).to_s) << template
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
Refs #3809 - Turning on some rubocop cops