Revision ca308fe3
Added by David Davis about 10 years ago
app/models/katello/content_view_version.rb | ||
---|---|---|
has_many :repositories, :class_name => "Katello::Repository", :dependent => :destroy
|
||
has_one :task_status, :class_name => "Katello::TaskStatus", :as => :task_owner, :dependent => :destroy
|
||
|
||
has_many :content_view_components
|
||
has_many :composite_content_views, :through => :content_view_components
|
||
has_many :content_view_components, :inverse_of => :content_view_version
|
||
has_many :composite_content_views, :through => :content_view_components, :source => :content_view
|
||
|
||
scope :default_view, joins(:content_view).where("#{Katello::ContentView.table_name}.default" => true)
|
||
scope :non_default_view, joins(:content_view).where("#{Katello::ContentView.table_name}.default" => false)
|
Also available in: Unified diff
Content Views: Fixed source for composite content views