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.26.8 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.4 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.3 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.7 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.5 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.2 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.1 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.4 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.0 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.3 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.0.rc2 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.27.0.rc1 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.2 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.1 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.0 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.0.rc2 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.26.0.rc1 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.25.2 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb
decidim-generators-0.25.1 lib/decidim/generators/component_templates/lib/decidim/component/engine.rb.erb