Sha256: f6311ec9994e2090bb924a1923af1f8a4a1680811c0102ea5ef7387d78d53586
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
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 paths["lib/tasks"] = nil routes do resources :proposals, only: [:index, :new, :create, :edit, :update] do post :update_category, on: :collection collection do resource :proposals_import, only: [:new, :create] resource :proposals_merge, only: [:create] resource :proposals_split, only: [:create] end resources :proposal_answers, only: [:edit, :update] resources :proposal_notes, only: [:index, :create] end scope "/proposal_components/:component_id" do resources :participatory_texts, only: [:index] do collection do get :new_import post :import patch :import post :update post :discard end end end root to: "proposals#index" end initializer "decidim_proposals.admin_assets" do |app| app.config.assets.precompile += %w(admin/decidim_proposals_manifest.js) end def load_seed nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-proposals-0.16.1 | lib/decidim/proposals/admin_engine.rb |