Sha256: 4dc36c9e68d8e935ddd9f1cedf4f2a8abe48efc8d63be97ae054b599c1951ab4

Contents?: true

Size: 491 Bytes

Versions: 6

Compression:

Stored size: 491 Bytes

Contents

module Katello
  class InstalledPackage < Katello::Model
    class Jail < Safemode::Jail
      allow :nvra, :nvrea, :name
    end

    has_many :hosts, :through => :host_installed_packages, :class_name => "::Host"
    has_many :host_installed_packages, :class_name => "Katello::HostInstalledPackage", :dependent => :destroy, :inverse_of => :installed_package

    scoped_search :on => :name, :complete_value => true
    scoped_search :on => :nvra

    def nvrea
      nvra
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
katello-3.15.0.rc1.1 app/models/katello/installed_package.rb
katello-3.15.0.rc1 app/models/katello/installed_package.rb
katello-3.14.1 app/models/katello/installed_package.rb
katello-3.14.0 app/models/katello/installed_package.rb
katello-3.14.0.rc2 app/models/katello/installed_package.rb
katello-3.14.0.rc1 app/models/katello/installed_package.rb