Sha256: 1e4bd98200df3db1323d3607cf2384d44ad68dfa4d0ac4372cc86b66d2b93fa1

Contents?: true

Size: 815 Bytes

Versions: 14

Compression:

Stored size: 815 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
        resources :statuses
        resources :results, except: [:show] do
          resources :timeline_entries, except: [:show]
        end
        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

14 entries across 14 versions & 1 rubygems

Version Path
decidim-accountability-0.9.3 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.9.2 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.9.1 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.9.0 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.8.4 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.8.3 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.8.2 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.8.1 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.8.0 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.7.4 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.7.3 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.7.2 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.7.1 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.7.0 lib/decidim/accountability/admin_engine.rb