X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/00e87082306d6cfaafe9f190de28ed9bd1d13b09..2ee66139013b4bd54c9614508dcf0b9d8b0714f7:/app/controllers/election_controller.rb diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index 2337232..2fe5e4b 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -70,7 +70,7 @@ class ElectionController < ApplicationController @election = Election.find(params[:id]) unless (params[:top_bar][:uploaded_data].to_s.empty? and params[:default_image][:uploaded_data].to_s.empty? and params[:bg1][:uploaded_data].to_s.empty? and params[:bg2][:uploaded_data].to_s.empty? and params[:bottom_bar][:uploaded_data].to_s.empty?) - unless @election.embed_custom.string + unless @election.embed_custom_string token_generator = UniqueTokenGenerator.new( 16 ) @election.embed_custom_string = token_generator.token end