Skip to content

Commit

Permalink
Service display has been renamed to visible.
Browse files Browse the repository at this point in the history
To avoid name conflict with Kernel#display method.
https://bugzilla.redhat.com/show_bug.cgi?id=1737559
  • Loading branch information
lfu authored and bdunne committed Oct 1, 2019
1 parent 1d73637 commit 9c72451
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class Service < ApplicationRecord
include CiFeatureMixin
include CustomActionsMixin
include CustomAttributeMixin
include DeprecationMixin
include ExternalUrlMixin
include LifecycleMixin
include Metric::CiMixin
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9c72451

Please sign in to comment.