Class: Plum::ContentType

Inherits:
ApplicationRecord show all
Includes:
SiteScoped
Defined in:
app/models/plum/content_type.rb

Constant Summary collapse

FIELD_TYPES =
FieldTypeRegistry.handles.freeze

Instance Method Summary collapse

Instance Method Details

#fieldsObject



16
17
18
# File 'app/models/plum/content_type.rb', line 16

def fields
  blueprint&.dig("fields") || []
end

#route_prefixObject



20
21
22
# File 'app/models/plum/content_type.rb', line 20

def route_prefix
  blueprint&.dig("route_prefix").presence
end