]> projects.mako.cc - selectricity-live/blobdiff - app/controllers/election_controller.rb
fixed a typo in election controller in the edit_general_information method.
[selectricity-live] / app / controllers / election_controller.rb
index 23372324432cf6046c2028742cbd463193d2e264..2fe5e4bbc8d17f6df259b19175bc73df39eab0fb 100644 (file)
@@ -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

Benjamin Mako Hill || Want to submit a patch?