app/models/katello/pool.rb in katello-3.4.2 vs app/models/katello/pool.rb in katello-3.4.4
- old
+ new
@@ -5,10 +5,10 @@
belongs_to :subscription, :inverse_of => :pools, :class_name => "Katello::Subscription"
has_many :activation_keys, :through => :pool_activation_keys, :class_name => "Katello::ActivationKey"
has_many :pool_activation_keys, :class_name => "Katello::PoolActivationKey", :dependent => :destroy, :inverse_of => :pool
- scope :in_org, ->(org_id) { joins(:subscription).where("#{Katello::Subscription.table_name}.organization_id = ?", org_id) }
+ scope :in_organization, ->(org_id) { joins(:subscription).where("#{Katello::Subscription.table_name}.organization_id = ?", org_id) }
scope :for_activation_key, ->(ak) { joins(:activation_keys).where("#{Katello::ActivationKey.table_name}.id" => ak.id) }
self.include_root_in_json = false
include Glue::Candlepin::Pool