Sha256: 3900db64496c3e470d8ea9114212c2eea492314c16bfd285dd1b6d08e71480b4
Contents?: true
Size: 1.84 KB
Versions: 7
Compression:
Stored size: 1.84 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 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 initializer "decidim_plans.content_processors" do |_app| Decidim.configure do |config| config.content_processors += [:plan] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems