# frozen_string_literal: true module Decidim module Debates # This is the engine that runs on the public interface of `decidim-debates`. # It mostly handles rendering the created debate associated to a participatory # process. class AdminEngine < ::Rails::Engine isolate_namespace Decidim::Debates::Admin paths["db/migrate"] = nil paths["lib/tasks"] = nil routes do resources :debates do resources :debate_closes, only: [:edit, :update] end root to: "debates#index" end def load_seed nil end initializer "decidim_debates.admin_assets" do |app| app.config.assets.precompile += %w(admin/decidim_debates_manifest.js) end end end end