Class: Plum::ContentType
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ApplicationRecord
- Plum::ContentType
- Includes:
- SiteScoped, StaticCacheInvalidation
- Defined in:
- app/models/plum/content_type.rb
Constant Summary collapse
- FIELD_TYPES =
FieldTypeRegistry.handles.freeze
Constants included from StaticCacheInvalidation
StaticCacheInvalidation::CACHE_IRRELEVANT_COLUMNS
Instance Method Summary collapse
Instance Method Details
#fields ⇒ Object
17 18 19 |
# File 'app/models/plum/content_type.rb', line 17 def fields blueprint&.dig("fields") || [] end |
#route_prefix ⇒ Object
21 22 23 |
# File 'app/models/plum/content_type.rb', line 21 def route_prefix blueprint&.dig("route_prefix").presence end |