Module: Kaui::PluginHelper
- Defined in:
- app/helpers/kaui/plugin_helper.rb
Instance Method Summary collapse
-
#plugin_repository ⇒ Object
including plugin that are installed.
Instance Method Details
#plugin_repository ⇒ Object
including plugin that are installed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/helpers/kaui/plugin_helper.rb', line 4 def plugin_repository plugins = [] plugin_repository = Kaui::AdminTenant.get_plugin_repository plugin_repository.each_pair do |key, info| plugins << { plugin_key: plugin_key(key.to_s, info), plugin_name: plugin_name(key.to_s, info), plugin_type: info[:type], installed: false } end installed_plugins = installed_plugins(plugins) plugins.sort! { |a, b| a[:plugin_key] <=> b[:plugin_key] } plugins.each { |plugin| installed_plugins << plugin } installed_plugins end |