Class: Spina::Blocks::Block
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Spina::Blocks::Block
- Includes:
- AttrJson::NestedAttributes, AttrJson::Record, Partable, TranslatedContent
- Defined in:
- app/models/spina/blocks/block.rb
Instance Method Summary collapse
-
#system? ⇒ Boolean
Whether this block is a system (custom) block with an immutable key.
- #to_s ⇒ Object
Instance Method Details
#system? ⇒ Boolean
Whether this block is a system (custom) block with an immutable key
32 33 34 |
# File 'app/models/spina/blocks/block.rb', line 32 def system? key.present? end |
#to_s ⇒ Object
27 28 29 |
# File 'app/models/spina/blocks/block.rb', line 27 def to_s name end |