Sha256: f519f09585d943895ca1f683be03d55b8e93e44e3dbd05df1431d838d7fd3817
Contents?: true
Size: 1.68 KB
Versions: 14
Compression:
Stored size: 1.68 KB
Contents
# frozen_string_literal: true require "rails" require "active_support/all" require "devise" require "devise-i18n" require "decidim/core" require "jquery-rails" require "sassc-rails" require "foundation-rails" require "foundation_rails_helper" require "autoprefixer-rails" require "rectify" module Decidim module System # Decidim's core Rails Engine. class Engine < ::Rails::Engine isolate_namespace Decidim::System initializer "decidim_system.mount_routes" do |_app| Decidim::Core::Engine.routes do mount Decidim::System::Engine => "/system" end end initializer "decidim_system.assets" do |app| app.config.assets.precompile += %w(decidim_system_manifest.js) end initializer "decidim_system.menu" do Decidim.menu :system_menu do |menu| menu.item I18n.t("menu.dashboard", scope: "decidim.system"), decidim_system.root_path, position: 1, active: ["decidim/system/dashboard" => :show] menu.item I18n.t("menu.organizations", scope: "decidim.system"), decidim_system.organizations_path, position: 2, active: :inclusive menu.item I18n.t("menu.admins", scope: "decidim.system"), decidim_system.admins_path, position: 3, active: :inclusive menu.item I18n.t("menu.oauth_applications", scope: "decidim.system"), decidim_system.oauth_applications_path, position: 4, active: [%w(decidim/system/oauth_applications), []] end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems