Sha256: c50bc98fdb30cbdc4a19bdb7f70b0a053fb5407371ec5c15beecee477a2b1ce3
Contents?: true
Size: 1.7 KB
Versions: 4
Compression:
Stored size: 1.7 KB
Contents
# frozen_string_literal: true module Decidim module Plans class Engine < ::Rails::Engine isolate_namespace Decidim::Plans routes do resources :plans do get :search_proposals resource :plan_widget, only: :show, path: "embed" resources :versions, only: [:show, :index] member do get :preview post :publish post :close post :reopen put :withdraw post :request_access, controller: "plan_collaborator_requests" post :request_accept, controller: "plan_collaborator_requests" post :request_reject, controller: "plan_collaborator_requests" end end root to: "plans#index" end initializer "decidim_plans.assets" do |app| app.config.assets.precompile += %w(decidim_plans_manifest.js decidim_plans_manifest.css decidim/plans/identity_selector_dialog.js decidim/plans/decidim_plans_manifest.js decidim/plans/social_share.js decidim/plans/proposal_picker.scss decidim/plans/social_share.css.scss decidim/plans/plans_form.scss) end initializer "decidim_plans.add_cells_view_paths" do Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Plans::Engine.root}/app/cells") Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Plans::Engine.root}/app/views") # for partials end end end end
Version data entries
4 entries across 4 versions & 1 rubygems