X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/7b649ccad8804580632c255b9f451482fdbbe32d..9347f6bd316ab609f4b780658855e52e7937e5a6:/app/controllers/election_controller.rb?ds=inline diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 7040c38..4ad8bac 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -67,6 +67,15 @@ class ElectionController < ApplicationController @election.activate! redirect_to :action => 'show', :id => @election.id end + + def change_notices + election = Election.find(params[:id]) + if election.notices == 0 + election.notices = 1 + else + election.notices = 0 + end + end # methods fod display, adding, deleting, and manipulating candidate # information for elections