Sha256: a624b73c3d5064cd45b72c9f51e5fe67a6cfaaa785f91a9a6152230612ee4bcd

Contents?: true

Size: 896 Bytes

Versions: 3

Compression:

Stored size: 896 Bytes

Contents

# frozen_string_literal: true

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

      paths["db/migrate"] = nil

      routes do
        resource :template_texts
        resources :statuses
        resources :results, except: [:show] do
          resources :timeline_entries, except: [:show]
        end
        resource :import, only: [:new, :create]
        root to: "results#index"
      end

      def load_seed
        nil
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-accountability-0.1.2 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.1.1 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.1.0 lib/decidim/accountability/admin_engine.rb