Class: Katello::ContentViewPackageGroupFilterRule

Inherits:
Model
  • Object
show all
Includes:
Katello::Concerns::ContentViewFilterRuleCommon
Defined in:
app/models/katello/content_view_package_group_filter_rule.rb

Class Method Summary collapse

Methods included from Katello::Concerns::ContentViewFilterRuleCommon

#create_audit_record

Methods inherited from Model

#destroy!

Class Method Details

.in_content_views(content_view_ids) ⇒ Object



12
13
14
15
# File 'app/models/katello/content_view_package_group_filter_rule.rb', line 12

def self.in_content_views(content_view_ids)
  joins('INNER JOIN katello_content_view_filters ON katello_content_view_package_group_filter_rules.content_view_filter_id = katello_content_view_filters.id').
    where("katello_content_view_filters.content_view_id IN (#{content_view_ids.join(',')})")
end