Sha256: 184f6c3499a8b7d5be7c5485fdbc8b4862374c1d9daad76f7c5a135a0003c2e2
Contents?: true
Size: 634 Bytes
Versions: 39
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true require "rails" require "decidim/core" module Decidim module <%= component_module_name %> # This is the engine that runs on the public interface of <%= component_name %>. class Engine < ::Rails::Engine isolate_namespace Decidim::<%= component_module_name %> routes do # Add engine routes here # resources :<%= component_name %> # root to: "<%= component_name %>#index" end initializer "<%= component_module_name %>.webpacker.assets_path" do Decidim.register_assets_path File.expand_path("app/packs", root) end end end end
Version data entries
39 entries across 39 versions & 1 rubygems