podemos-info/participa2

View on GitHub
decidim-module-votings/lib/decidim/votings/admin_engine.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Decidim
  module Votings
    # This is the engine that runs on the public interface of
    # `decidim-votings`. It mostly handles rendering
    # the collaborations associated to a participatory Decidimprocess.
    class AdminEngine < ::Rails::Engine
      isolate_namespace Decidim::Votings::Admin

      paths["db/migrate"] = nil

      routes do
        resources :votings do
          resources :votes, only: [:index], constraints: { format: "tsv" }
        end

        root to: "votings#index"
      end
    end
  end
end