Sha256: 086e631ecb779b8789deb9327138fcc56eefedf013ec6b3347fd671817e183b9
Contents?: true
Size: 1.32 KB
Versions: 13
Compression:
Stored size: 1.32 KB
Contents
# frozen_string_literal: true require "rails" require "active_support/all" require "decidim/core" module Decidim module Design # This is the engine that runs on the public interface of `decidim-design`. class Engine < ::Rails::Engine isolate_namespace Decidim::Design initializer "decidim_design.mount_routes" do |_app| Decidim::Core::Engine.routes do mount Decidim::Design::Engine => "/design" end end initializer "decidim_design.register_icons" do Decidim.icons.register(name: "home-7-line", icon: "home-7-line", category: "system", description: "", engine: :design) Decidim.icons.register(name: "ruler-line", icon: "ruler-line", category: "system", description: "", engine: :design) Decidim.icons.register(name: "focus-line", icon: "focus-line", category: "system", description: "", engine: :design) end initializer "decidim_design.add_cells_view_paths" do Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Design::Engine.root}/app/cells") Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Design::Engine.root}/app/views") # for partials end initializer "decidim_design.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