Class: Katello::ContentViewComponent

Inherits:
Model
  • Object
show all
Includes:
Authorization::ContentViewComponent
Defined in:
app/models/katello/content_view_component.rb

Instance Method Summary collapse

Methods inherited from Model

#destroy!

Instance Method Details

#component_content_view_versionsObject



34
35
36
# File 'app/models/katello/content_view_component.rb', line 34

def component_content_view_versions
  self.content_view&.versions
end

#latest_versionObject



26
27
28
29
30
31
32
# File 'app/models/katello/content_view_component.rb', line 26

def latest_version
  if latest?
    self.content_view.latest_version_object
  else
    self.content_view_version
  end
end