Sha256: c82b4acc1ed9306b6496c788f3a29af9baf5edc4ce63208599c18bdbd3892f55

Contents?: true

Size: 1022 Bytes

Versions: 13

Compression:

Stored size: 1022 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
      paths["lib/tasks"] = nil

      routes do
        resources :statuses
        resources :results, except: [:show] do
          get :proposals_picker, on: :collection

          resources :attachment_collections, except: [:show]
          resources :attachments, except: [:show]
          resources :timeline_entries, except: [:show]
        end
        resources :projects_import, only: [:new, :create]
        get :import_results, to: "import_results#new"
        post :import_results, to: "import_results#create"
        root to: "results#index"
      end

      def load_seed
        nil
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-accountability-0.29.1 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.28.4 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.29.0 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.28.3 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.29.0.rc4 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.29.0.rc3 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.29.0.rc2 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.29.0.rc1 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.28.2 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.28.1 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.28.0 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.28.0.rc5 lib/decidim/accountability/admin_engine.rb
decidim-accountability-0.28.0.rc4 lib/decidim/accountability/admin_engine.rb