Sha256: a6a9c1a3132d05d87412a8b604453938a05064bf0c8e8c5ec71dd4ea2dc9d729
Contents?: true
Size: 1.12 KB
Versions: 13
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true require "rails" require "active_support/all" require "decidim/core" module Decidim module Sortitions # Decidim's Sortitions Rails Engine. class Engine < ::Rails::Engine isolate_namespace Decidim::Sortitions routes do resources :sortitions, only: [:index, :show] scope "/sortitions" do root to: "sortitions#index" end get "/", to: redirect("sortitions", status: 301) end initializer "decidim_sortitions.register_icons" do Decidim.icons.register(name: "seedling-line", icon: "seedling-line", category: "system", description: "", engine: :sortitions) end initializer "decidim_sortitions.add_cells_view_paths" do Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Sortitions::Engine.root}/app/cells") Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Sortitions::Engine.root}/app/views") # for proposal partials end initializer "decidim_sortitions.webpacker.assets_path" do Decidim.register_assets_path File.expand_path("app/packs", root) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems