From 7de5642d75077c8a3c9fd8c12a1a086e4071ea80 Mon Sep 17 00:00:00 2001 From: hsong-rh Date: Wed, 19 Sep 2018 09:42:05 -0400 Subject: [PATCH] Fix the case for default value of internal is nil --- app/models/service_template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/service_template.rb b/app/models/service_template.rb index d5cb561c271..38068341c64 100644 --- a/app/models/service_template.rb +++ b/app/models/service_template.rb @@ -80,7 +80,7 @@ class ServiceTemplate < ApplicationRecord 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) } - scope :public_service_templates, -> { where.not(:internal => true) } + scope :public_service_templates, -> { where(:internal => [false, nil]) } def self.catalog_item_types ci_types = Set.new(Rbac.filtered(ExtManagementSystem.all).flat_map(&:supported_catalog_types))