Sha256: 293409ed4a90063396943160575d143a979edbd2cb3edf9f51f7f920ef0a7057
Contents?: true
Size: 603 Bytes
Versions: 64
Compression:
Stored size: 603 Bytes
Contents
module Katello class HostTracer < Katello::Model include Katello::Authorization::HostTracer belongs_to :host, :inverse_of => :host_traces, :class_name => '::Host::Managed' scope :reboot_required, -> { where(app_type: 'static') } validates :application, :length => {:maximum => 255}, :presence => true validates :app_type, :length => {:maximum => 255}, :presence => true scoped_search :on => :application, :complete_value => true scoped_search :on => :app_type scoped_search :on => :helper def reboot_required? self.app_type == 'static' end end end
Version data entries
64 entries across 64 versions & 1 rubygems