Sha256: b853a3e6de365bb6bad9dfd358390eda7d50b507c9a8eeb615b48ef2a0e0e3b1

Contents?: true

Size: 788 Bytes

Versions: 9

Compression:

Stored size: 788 Bytes

Contents

# frozen_string_literal: true

require "searchlight"
require "kaminari"

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

      routes do
        resources :results, only: [:index, :show] do
          resource :result_widget, only: :show, path: "embed"
          resources :versions, only: [:show, :index]
        end
        root to: "results#home"
      end

      initializer "decidim_accountability.assets" do |app|
        app.config.assets.precompile += %w(decidim_accountability_manifest.js)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-accountability-0.9.3 lib/decidim/accountability/engine.rb
decidim-accountability-0.9.2 lib/decidim/accountability/engine.rb
decidim-accountability-0.9.1 lib/decidim/accountability/engine.rb
decidim-accountability-0.9.0 lib/decidim/accountability/engine.rb
decidim-accountability-0.8.4 lib/decidim/accountability/engine.rb
decidim-accountability-0.8.3 lib/decidim/accountability/engine.rb
decidim-accountability-0.8.2 lib/decidim/accountability/engine.rb
decidim-accountability-0.8.1 lib/decidim/accountability/engine.rb
decidim-accountability-0.8.0 lib/decidim/accountability/engine.rb