Module: Distribuo::ApplicationHelper
- Defined in:
- app/helpers/distribuo/application_helper.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
21
22
23
24
25
26
27
|
# File 'app/helpers/distribuo/application_helper.rb', line 21
def method_missing(method, *args, &block)
if main_app.respond_to?(method)
main_app.send(method, *args)
else
super
end
end
|
Instance Method Details
9
10
11
12
13
|
# File 'app/helpers/distribuo/application_helper.rb', line 9
def
Satis::Menus::Builder.build(:app) do |m|
m.item :releases, icon: 'box_open', link: admin_app_releases_path(@app) if @app&.persisted?
end
end
|
15
16
17
18
19
|
# File 'app/helpers/distribuo/application_helper.rb', line 15
def
Satis::Menus::Builder.build(:app_releases) do |m|
m.item :new, label: 'New', link: new_admin_app_release_path(@app)
end
end
|
3
4
5
6
7
|
# File 'app/helpers/distribuo/application_helper.rb', line 3
def
Satis::Menus::Builder.build(:apps) do |m|
m.item :create, icon: 'fal fa-plus', link: distribuo.new_admin_app_path
end
end
|