Sha256: 7b3d8c8941dc4bc5508e203808e741b3dc97758a829cf97ccd9818935d2ba0d9
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
module Distribuo module ApplicationHelper def distribuo_apps_menu Satis::Menus::Builder.build(:apps) do |m| m.item :create, icon: 'fal fa-plus', link: distribuo.new_admin_app_path end end def distribuo_app_menu Satis::Menus::Builder.build(:app) do |m| m.item :releases, icon: 'box_open', link: admin_app_releases_path(@app) if @app&.persisted? end end def distribuo_app_releases_menu Satis::Menus::Builder.build(:app_releases) do |m| m.item :new, label: 'New', link: new_admin_app_release_path(@app) end end def method_missing(method, *args, &block) if main_app.respond_to?(method) main_app.send(method, *args) else super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
distribuo-0.1.16 | app/helpers/distribuo/application_helper.rb |
distribuo-0.1.8 | app/helpers/distribuo/application_helper.rb |