From 9c72451aa296ddaff00c86d4150d18b18cfb1609 Mon Sep 17 00:00:00 2001 From: Lucy Fu Date: Tue, 27 Aug 2019 10:56:20 -0400 Subject: [PATCH] Service display has been renamed to visible. To avoid name conflict with Kernel#display method. https://bugzilla.redhat.com/show_bug.cgi?id=1737559 --- app/models/service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/service.rb b/app/models/service.rb index cc5f49bb95d..27b657577ca 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -64,6 +64,7 @@ class Service < ApplicationRecord include CiFeatureMixin include CustomActionsMixin include CustomAttributeMixin + include DeprecationMixin include ExternalUrlMixin include LifecycleMixin include Metric::CiMixin @@ -108,6 +109,7 @@ class Service < ApplicationRecord alias parent_service parent alias_attribute :service, :parent virtual_belongs_to :service + deprecate_attribute :display, :visible def power_states vms.map(&:power_state)