Sha256: a119d725b611f3fae4dbfd196cb01bd17c9f108a4f3f0de0155ff071f93de29b
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 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 "rectify" require_dependency File.join(File.dirname(__FILE__), "..", "..", "..", "app/models/decidim/admin/abilities/admin_user") module Decidim module Admin # Decidim's core Rails Engine. class Engine < ::Rails::Engine isolate_namespace Decidim::Admin initializer "decidim_admin.mount_routes" do |_app| Decidim::Core::Engine.routes do mount Decidim::Admin::Engine => "/admin" end end initializer "decidim_admin.assets" do |app| app.config.assets.precompile += %w(decidim_admin_manifest.js) end initializer "decidim_admin.inject_abilities_to_user" do |_app| Decidim.configure do |config| config.abilities += ["Decidim::Admin::Abilities::AdminUser"] config.abilities += ["Decidim::Admin::Abilities::ParticipatoryProcessAdmin"] config.abilities += ["Decidim::Admin::Abilities::CollaboratorUser"] end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
decidim-admin-0.0.5 | lib/decidim/admin/engine.rb |
decidim-0.0.5 | decidim-admin/lib/decidim/admin/engine.rb |