Class: Spina::Parts::BlockReference

Inherits:
Base
  • Object
show all
Defined in:
app/models/spina/parts/block_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'app/models/spina/parts/block_reference.rb', line 8

def options
  @options
end

Instance Method Details

#contentObject



10
11
12
# File 'app/models/spina/parts/block_reference.rb', line 10

def content
  ::Spina::Blocks::Block.active.find_by(id: block_id)
end