Class: Plum::ContentType
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ApplicationRecord
- Plum::ContentType
- Includes:
- SiteScoped
- Defined in:
- app/models/plum/content_type.rb
Constant Summary collapse
- FIELD_TYPES =
%w[text textarea rich_text image boolean select date relationship blocks].freeze
Instance Method Summary collapse
Instance Method Details
#fields ⇒ Object
15 16 17 |
# File 'app/models/plum/content_type.rb', line 15 def fields blueprint&.dig("fields") || [] end |
#route_prefix ⇒ Object
19 20 21 |
# File 'app/models/plum/content_type.rb', line 19 def route_prefix blueprint&.dig("route_prefix").presence end |