Class: BlockEditor::Blocks::Reusable

Inherits:
Base
  • Object
show all
Defined in:
lib/block_editor/blocks/reusable.rb

Overview

Outputs Reusable block

Class Method Summary collapse

Methods inherited from Base

controller, default_options

Class Method Details

.nameObject



6
7
8
# File 'lib/block_editor/blocks/reusable.rb', line 6

def self.name
  'block'
end

.render(options = {}) ⇒ Object

Render the block



11
12
13
# File 'lib/block_editor/blocks/reusable.rb', line 11

def self.render(options = {})
  BlockListRenderer.render(BlockEditor::BlockList.find(options['ref']).content)
end