diff --git a/app/models/service_template.rb b/app/models/service_template.rb index 31c6652acc7..d67929ae1d4 100644 --- a/app/models/service_template.rb +++ b/app/models/service_template.rb @@ -65,6 +65,7 @@ class ServiceTemplate < ApplicationRecord virtual_has_one :config_info, :class_name => "Hash" scope :with_service_template_catalog_id, ->(cat_id) { where(:service_template_catalog_id => cat_id) } + scope :without_service_template_catalog_id, -> { where(:service_template_catalog_id => nil) } scope :with_existent_service_template_catalog_id, -> { where.not(:service_template_catalog_id => nil) } scope :displayed, -> { where(:display => true) }