Module: Katello::Authorization::ContentViewVersion::ClassMethods
- Defined in:
- app/models/katello/authorization/content_view_version.rb
Instance Method Summary collapse
- #deletable ⇒ Object
- #editable ⇒ Object
- #exportable ⇒ Object
- #promotable_or_removable ⇒ Object
- #publishable ⇒ Object
- #readable ⇒ Object
- #with_content_view_scope(scope) ⇒ Object
Instance Method Details
#deletable ⇒ Object
33 34 35 |
# File 'app/models/katello/authorization/content_view_version.rb', line 33 def deletable with_content_view_scope(:deletable) end |
#editable ⇒ Object
25 26 27 |
# File 'app/models/katello/authorization/content_view_version.rb', line 25 def editable with_content_view_scope(:editable) end |
#exportable ⇒ Object
21 22 23 |
# File 'app/models/katello/authorization/content_view_version.rb', line 21 def exportable with_content_view_scope(:exportable) end |
#promotable_or_removable ⇒ Object
37 38 39 |
# File 'app/models/katello/authorization/content_view_version.rb', line 37 def promotable_or_removable with_content_view_scope(:promotable_or_removable) end |
#publishable ⇒ Object
29 30 31 |
# File 'app/models/katello/authorization/content_view_version.rb', line 29 def publishable with_content_view_scope(:publishable) end |
#readable ⇒ Object
17 18 19 |
# File 'app/models/katello/authorization/content_view_version.rb', line 17 def readable with_content_view_scope(:readable) end |
#with_content_view_scope(scope) ⇒ Object
13 14 15 |
# File 'app/models/katello/authorization/content_view_version.rb', line 13 def with_content_view_scope(scope) joins(:content_view).merge(Katello::ContentView.send(scope)) end |