Sha256: ee607f762f0ef7120d4496a4c726d537b7591203cccec95c0cff15fb5066633e

Contents?: true

Size: 811 Bytes

Versions: 8

Compression:

Stored size: 811 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Elections
    # This is the engine that runs on the public interface of `Elections`.
    class AdminEngine < ::Rails::Engine
      isolate_namespace Decidim::Elections::Admin

      paths["db/migrate"] = nil
      paths["lib/tasks"] = nil

      routes do
        resources :elections do
          member do
            put :publish
            put :unpublish
          end
          resources :questions do
            resources :answers do
              get :proposals_picker, on: :collection
              collection do
                resource :proposals_import, only: [:new, :create]
              end
            end
          end
        end

        root to: "elections#index"
      end

      def load_seed
        nil
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-elections-0.23.6 lib/decidim/elections/admin_engine.rb
decidim-elections-0.23.5 lib/decidim/elections/admin_engine.rb
decidim-elections-0.23.4 lib/decidim/elections/admin_engine.rb
decidim-elections-0.23.3 lib/decidim/elections/admin_engine.rb
decidim-elections-0.23.2 lib/decidim/elections/admin_engine.rb
decidim-elections-0.23.1 lib/decidim/elections/admin_engine.rb
decidim-elections-0.23.1.rc1 lib/decidim/elections/admin_engine.rb
decidim-elections-0.23.0 lib/decidim/elections/admin_engine.rb