Sha256: 4cf27cf9fc7b50e00c07a6d916b66d0b11fe20bc945ed3cdeed6717fd4f7b78c
Contents?: true
Size: 896 Bytes
Versions: 8
Compression:
Stored size: 896 Bytes
Contents
# frozen_string_literal: true require "jquery-tmpl-rails" module Decidim module Surveys # This is the engine that runs on the public interface of `Surveys`. class AdminEngine < ::Rails::Engine isolate_namespace Decidim::Surveys::Admin paths["db/migrate"] = nil routes do post "/", to: "surveys#update", as: :survey root to: "surveys#edit" end initializer "decidim_surveys.assets" do |app| app.config.assets.precompile += %w(admin/decidim_surveys_manifest.js) end initializer "decidim_surveys.inject_abilities_to_user" do |_app| Decidim.configure do |config| config.admin_abilities += ["Decidim::Surveys::Abilities::AdminUser"] config.admin_abilities += ["Decidim::Surveys::Abilities::ProcessAdminUser"] end end def load_seed nil end end end end
Version data entries
8 entries across 8 versions & 2 rubygems