Module: ApplicationHelper
- Defined in:
- app/helpers/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#link_to_menu_item(menu_item) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/application_helper.rb', line 2 def () if 'link' == . link = link_to(.label, .link) else if .page_id page = Cms::Page.find(.page_id) link = link_to(.label, page.url) else ComfyPress.logger.warn('Page is not selected for menu item.') end end link end |