lib/decidim/elections/engine.rb in decidim-elections-0.24.3 vs lib/decidim/elections/engine.rb in decidim-elections-0.25.0.rc1

- old
+ new

@@ -13,25 +13,23 @@ resources :elections, only: [:index, :show] do resource :feedback, only: [:show] do post :answer end - resource :vote, only: [:new, :update] do - post :cast + resources :votes, only: [:new, :create, :update, :show] do get :verify + match "new", action: :new, via: :post, as: :login, on: :collection end + + get :election_log, on: :member end root to: "elections#index" end initializer "decidim_elections.add_cells_view_paths" do Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Elections::Engine.root}/app/cells") Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Elections::Engine.root}/app/views") # for partials - end - - initializer "decidim_elections.assets" do |app| - app.config.assets.precompile += %w(decidim_elections_manifest.js decidim_elections_manifest.css) end end end end