Class: Alchemy::Ingredients::PageView

Inherits:
BaseView
  • Object
show all
Defined in:
app/components/alchemy/ingredients/page_view.rb

Instance Attribute Summary

Attributes inherited from BaseView

#html_options, #ingredient

Instance Method Summary collapse

Methods inherited from BaseView

#initialize

Constructor Details

This class inherits a constructor from Alchemy::Ingredients::BaseView

Instance Method Details

#callObject



6
7
8
# File 'app/components/alchemy/ingredients/page_view.rb', line 6

def call
  link_to(page.name, alchemy.show_page_path(urlname: page.urlname)).html_safe
end

#render?Boolean

Returns:



10
11
12
# File 'app/components/alchemy/ingredients/page_view.rb', line 10

def render?
  !!page
end