Sha256: 94cd13cecbc85088c510dabceb0ac1bc3d4e7f353726c128c3b9d9f022271200
Contents?: true
Size: 833 Bytes
Versions: 8
Compression:
Stored size: 833 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals # This is the engine that runs on the public interface of `decidim-proposals`. class AdminEngine < ::Rails::Engine isolate_namespace Decidim::Proposals::Admin paths["db/migrate"] = nil routes do resources :proposals, only: [:index, :new, :create] do resources :proposal_answers, only: [:edit, :update] end root to: "proposals#index" end initializer "decidim_proposals.inject_abilities_to_user" do |_app| Decidim.configure do |config| config.admin_abilities += ["Decidim::Proposals::Abilities::AdminUser"] config.admin_abilities += ["Decidim::Proposals::Abilities::ProcessAdminUser"] end end def load_seed nil end end end end
Version data entries
8 entries across 8 versions & 2 rubygems