Sha256: 37bc4410eac1671a6ac3285d4be88db2c5bbc69315168150f34a691cb7345af3

Contents?: true

Size: 624 Bytes

Versions: 39

Compression:

Stored size: 624 Bytes

Contents

# frozen_string_literal: true

require "decidim/core"

module Decidim
  module Pages
    # This is the engine that runs on the public interface of `decidim-pages`.
    # It mostly handles rendering the created page associated to a participatory
    # process.
    class Engine < ::Rails::Engine
      isolate_namespace Decidim::Pages

      routes do
        resources :pages, only: [:show], controller: :application
        root to: "application#show"
      end

      initializer "decidim_pages.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-pages-0.29.1 lib/decidim/pages/engine.rb
decidim-pages-0.28.4 lib/decidim/pages/engine.rb
decidim-pages-0.27.9 lib/decidim/pages/engine.rb
decidim-pages-0.29.0 lib/decidim/pages/engine.rb
decidim-pages-0.28.3 lib/decidim/pages/engine.rb
decidim-pages-0.27.8 lib/decidim/pages/engine.rb
decidim-pages-0.29.0.rc4 lib/decidim/pages/engine.rb
decidim-pages-0.29.0.rc3 lib/decidim/pages/engine.rb
decidim-pages-0.29.0.rc2 lib/decidim/pages/engine.rb
decidim-pages-0.29.0.rc1 lib/decidim/pages/engine.rb
decidim-pages-0.28.2 lib/decidim/pages/engine.rb
decidim-pages-0.27.7 lib/decidim/pages/engine.rb
decidim-pages-0.28.1 lib/decidim/pages/engine.rb
decidim-pages-0.27.6 lib/decidim/pages/engine.rb
decidim-pages-0.26.10 lib/decidim/pages/engine.rb
decidim-pages-0.26.9 lib/decidim/pages/engine.rb
decidim-pages-0.28.0 lib/decidim/pages/engine.rb
decidim-pages-0.27.5 lib/decidim/pages/engine.rb
decidim-pages-0.28.0.rc5 lib/decidim/pages/engine.rb
decidim-pages-0.28.0.rc4 lib/decidim/pages/engine.rb