Class: Spina::Parts::PageLink

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

Instance Attribute Summary collapse

Attributes inherited from Base

#hint, #item_name, #title

Instance Method Summary collapse

Methods inherited from Base

#label

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'app/models/spina/parts/page_link.rb', line 7

def options
  @options
end

Instance Method Details

#contentObject



9
10
11
# File 'app/models/spina/parts/page_link.rb', line 9

def content
  ::Spina::Page.live.find_by(id: page_id)
end