Class: Cortex::ContentType
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Cortex::ContentType
- Defined in:
- app/models/cortex/content_type.rb
Class Method Summary collapse
-
.permissions ⇒ Object
TODO: Extract to a concern.
Class Method Details
.permissions ⇒ Object
TODO: Extract to a concern
23 24 25 |
# File 'app/models/cortex/content_type.rb', line 23 def self. Permission.select { |perm| perm.resource_type = self } end |