Class: Spina::Blocks::Block

Inherits:
ApplicationRecord show all
Includes:
AttrJson::NestedAttributes, AttrJson::Record, Partable, TranslatedContent
Defined in:
app/models/spina/blocks/block.rb

Instance Method Summary collapse

Instance Method Details

#system?Boolean

Whether this block is a system (custom) block with an immutable key

Returns:

  • (Boolean)


32
33
34
# File 'app/models/spina/blocks/block.rb', line 32

def system?
  key.present?
end

#to_sObject



27
28
29
# File 'app/models/spina/blocks/block.rb', line 27

def to_s
  name
end