Sha256: 0021b0c5b10d78f45b19bf70a8aef430cb8dd5f5b74341962c7a516b0f07c926

Contents?: true

Size: 547 Bytes

Versions: 26

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true

require "rails"
require "decidim/core"

module Decidim
  module Templates
    # This is the engine that runs on the public interface of templates.
    class Engine < ::Rails::Engine
      isolate_namespace Decidim::Templates

      routes do
        # Add engine routes here
        resources :templates
        # root to: "templates#index"
      end

      initializer "decidim_templates.webpacker.assets_path" do
        Decidim.register_assets_path File.expand_path("app/packs", root)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
decidim-templates-0.27.9 lib/decidim/templates/engine.rb
decidim-templates-0.27.8 lib/decidim/templates/engine.rb
decidim-templates-0.27.7 lib/decidim/templates/engine.rb
decidim-templates-0.27.6 lib/decidim/templates/engine.rb
decidim-templates-0.26.10 lib/decidim/templates/engine.rb
decidim-templates-0.26.9 lib/decidim/templates/engine.rb
decidim-templates-0.27.5 lib/decidim/templates/engine.rb
decidim-templates-0.26.8 lib/decidim/templates/engine.rb
decidim-templates-0.27.4 lib/decidim/templates/engine.rb
decidim-templates-0.27.3 lib/decidim/templates/engine.rb
decidim-templates-0.26.7 lib/decidim/templates/engine.rb
decidim-templates-0.26.5 lib/decidim/templates/engine.rb
decidim-templates-0.27.2 lib/decidim/templates/engine.rb
decidim-templates-0.27.1 lib/decidim/templates/engine.rb
decidim-templates-0.26.4 lib/decidim/templates/engine.rb
decidim-templates-0.27.0 lib/decidim/templates/engine.rb
decidim-templates-0.26.3 lib/decidim/templates/engine.rb
decidim-templates-0.27.0.rc2 lib/decidim/templates/engine.rb
decidim-templates-0.27.0.rc1 lib/decidim/templates/engine.rb
decidim-templates-0.26.2 lib/decidim/templates/engine.rb