]> projects.mako.cc - selectricity/commitdiff
fixed a typo in election controller in the edit_general_information method.
author<jlsharps@mit.edu> <>
Thu, 29 May 2008 21:01:04 +0000 (17:01 -0400)
committer<jlsharps@mit.edu> <>
Thu, 29 May 2008 21:01:04 +0000 (17:01 -0400)
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?)
     @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
         token_generator = UniqueTokenGenerator.new( 16 )
         @election.embed_custom_string = token_generator.token
       end

Benjamin Mako Hill || Want to submit a patch?