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

Version Path
decidim-generators-0.29.1 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.28.4 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.9 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.29.0 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.28.3 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.8 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.29.0.rc4 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.29.0.rc3 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.29.0.rc2 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.29.0.rc1 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.28.2 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.7 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.28.1 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.6 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.10 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.9 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.28.0 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.5 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.28.0.rc5 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.28.0.rc4 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb