From 9085771e7241ac38fb7b4535b83d58d6612bd4e5 Mon Sep 17 00:00:00 2001 From: Martin Povolny Date: Fri, 10 Nov 2017 14:12:41 +0100 Subject: [PATCH] Add scope :without_configuration_profile_id needed by Foreman explorer UI. --- app/models/configured_system.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/configured_system.rb b/app/models/configured_system.rb index 0b126164162..402f9e4621a 100644 --- a/app/models/configured_system.rb +++ b/app/models/configured_system.rb @@ -44,6 +44,7 @@ class ConfiguredSystem < ApplicationRecord scope :with_inventory_root_group, ->(group_id) { where(:inventory_root_group_id => group_id) } scope :with_manager, ->(manager_id) { where(:manager_id => manager_id) } scope :with_configuration_profile_id, ->(profile_id) { where(:configuration_profile_id => profile_id) } + scope :without_configuration_profile_id, -> { where(:configuration_profile_id => nil) } def configuration_architecture tag_hash[ConfigurationArchitecture]