Module: Katello::Authorization::ContentViewVersion
- Extended by:
- ActiveSupport::Concern
- Included in:
- ContentViewVersion
- Defined in:
- app/models/katello/authorization/content_view_version.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#all_hosts_editable?(lifecycle_environment) ⇒ Boolean
5 6 7 8 9 10 |
# File 'app/models/katello/authorization/content_view_version.rb', line 5 def all_hosts_editable?(lifecycle_environment) total_hosts = ::Host.in_content_view_environment(:content_view => self.content_view, :lifecycle_environment => lifecycle_environment) = ::Host.("view_hosts").in_content_view_environment(:content_view => self.content_view, :lifecycle_environment => lifecycle_environment) total_hosts.count == .count end |