Class: Cortex::ContentType

Inherits:
ApplicationRecord show all
Includes:
BelongsToTenant, SearchableContentItemForContentType, SearchableContentType
Defined in:
app/models/cortex/content_type.rb

Class Method Summary collapse

Class Method Details

.permissionsObject

TODO: Extract to a concern



23
24
25
# File 'app/models/cortex/content_type.rb', line 23

def self.permissions
  Permission.select { |perm| perm.resource_type = self }
end