Sha256: 5e08d4d448725769d68d041fbd7605a05027847b190d1f68ecfee047a06bf18c
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
# frozen_string_literal: true module TasksSchedulerHelper def tasks_scheduler_navbar tag.navbar do safe_join(tasks_scheduler_navbar_entries.map { |label, path| link_to label, path }, ' | ') end end def tasks_scheduler_navbar_entries ::Rails.application.root_menu.sub(:admin).sub(:tasks_scheduler).children .map { |child| [child.label, child.view_path(self)] } .to_h end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tasks_scheduler-0.7.0 | app/helpers/tasks_scheduler_helper.rb |