Class: Alchemy::Ingredients::PageView
- Inherits:
-
BaseView
- Object
- ViewComponent::Base
- BaseView
- Alchemy::Ingredients::PageView
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
Instance Method Details
#call ⇒ Object
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
|
10
11
12
|
# File 'app/components/alchemy/ingredients/page_view.rb', line 10
def render?
!!page
end
|