@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