X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/e8111bfbb23641eb8f5e6afadab6ec38e9e260c4..07ff860387aed826ff4046f16a27324c58e4fb3d:/app/controllers/election_controller.rb diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 68d59cc..7f87b2e 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -46,6 +46,7 @@ class ElectionController < ApplicationController @election.anonymous = 1 @election.startdate = Time.now + holder = create_theme_hash unless holder.values.all? {|v| v.has_value?("")} token_generator = UniqueTokenGenerator.new( 16 ) @@ -79,7 +80,6 @@ class ElectionController < ApplicationController def update_general_information @election = Election.find(params[:id]) - holder = create_theme_hash unless holder.values.all? {|v| v.has_value?("")} unless @election.embed_custom_string