Sha256: a1bc8afe2eac69c219f9a1b13eab3e7e49337b0cbe02ce1aaee31e4a7d513bbc
Contents?: true
Size: 893 Bytes
Versions: 8
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true require "rails" require "decidim/core" module Decidim module Elections # This is the engine that runs on the public interface of elections. class Engine < ::Rails::Engine isolate_namespace Decidim::Elections routes do resources :elections, only: [:index, :show] do resource :vote end root to: "elections#index" end initializer "decidim_elections.add_cells_view_paths" do Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Elections::Engine.root}/app/cells") Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Elections::Engine.root}/app/views") # for partials end initializer "decidim_elections.assets" do |app| app.config.assets.precompile += %w(decidim_elections_manifest.js decidim_elections_manifest.css) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems