app/models/katello/pool.rb in katello-3.2.1.1 vs app/models/katello/pool.rb in katello-3.3.0.rc1

- 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_org, ->(org_id) { joins(:subscription).where("#{Katello::Subscription.table_name}.organization_id = ?", org_id) } scope :for_activation_key, ->(ak) { where(cp_id: ak.get_key_pools.map { |pool| pool['id'] }) } self.include_root_in_json = false