Sha256: 35db605c55d27ca730ff44a481b65d7625f8b26479f9725f44083bdc52d96f4f
Contents?: true
Size: 1012 Bytes
Versions: 4
Compression:
Stored size: 1012 Bytes
Contents
# frozen_string_literal: true module Decidim module NavigationMaps # This is the engine that runs on the public interface of `NavigationMaps`. class AdminEngine < ::Rails::Engine isolate_namespace Decidim::NavigationMaps::Admin paths["db/migrate"] = nil paths["lib/tasks"] = nil routes do # Add admin engine routes here resources :blueprints, only: [:index, :show, :create] do resources :areas, param: :area_id end end initializer "decidim_navigation_maps.admin_mount_routes" do Decidim::Core::Engine.routes do mount Decidim::NavigationMaps::AdminEngine, at: "/admin/navigation_maps", as: "decidim_admin_navigation_maps" end end initializer "decidim_navigation_maps.admin_assets" do |app| app.config.assets.precompile += %w(admin/decidim_navigation_maps_manifest.js admin/decidim_navigation_maps_manifest.css) end def load_seed nil end end end end
Version data entries
4 entries across 4 versions & 1 rubygems