From: Date: Thu, 29 May 2008 21:01:04 +0000 (-0400) Subject: fixed a typo in election controller in the edit_general_information method. X-Git-Url: https://projects.mako.cc/source/selectricity-live/commitdiff_plain/2ee66139013b4bd54c9614508dcf0b9d8b0714f7 fixed a typo in election controller in the edit_general_information method. --- 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