Class: Katalyst::Navigation::Editor::ItemComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Katalyst::Navigation::Editor::ItemComponent
- Defined in:
- app/components/katalyst/navigation/editor/item_component.rb
Instance Attribute Summary
Attributes inherited from BaseComponent
Instance Method Summary collapse
Methods inherited from BaseComponent
#call, #initialize, #menu_form_id
Constructor Details
This class inherits a constructor from Katalyst::Navigation::Editor::BaseComponent
Instance Method Details
#edit_item_link ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/components/katalyst/navigation/editor/item_component.rb', line 7 def edit_item_link if item.persisted? helpers..(, item) else helpers..(item., type: item.type) end end |