Class: Katalyst::Content::Item
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Katalyst::Content::Item
- Defined in:
- app/models/katalyst/content/item.rb
Overview
STI base class for content items
Direct Known Subclasses
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#index ⇒ Object
Returns the value of attribute index.
-
#parent ⇒ Object
Returns the value of attribute parent.
Class Method Summary collapse
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
14 15 16 |
# File 'app/models/katalyst/content/item.rb', line 14 def children @children end |
#depth ⇒ Object
Returns the value of attribute depth.
14 15 16 |
# File 'app/models/katalyst/content/item.rb', line 14 def depth @depth end |
#index ⇒ Object
Returns the value of attribute index.
14 15 16 |
# File 'app/models/katalyst/content/item.rb', line 14 def index @index end |
#parent ⇒ Object
Returns the value of attribute parent.
14 15 16 |
# File 'app/models/katalyst/content/item.rb', line 14 def parent @parent end |
Class Method Details
.permitted_params ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/models/katalyst/content/item.rb', line 16 def self.permitted_params %i[ container_type container_id type heading show_heading background visible ] end |