Major update of Selectricity to work with Rails 2.2.2 from 1.2!
[selectricity] / app / controllers / election_controller.rb
index 3e169646bac4d583087fc585c36304fc186f9999..5c13a8128cdfa6781240bc6b9937d0e533482afd 100644 (file)
@@ -45,6 +45,7 @@ class ElectionController < ApplicationController
     @election.user = session[:user]
     @election.anonymous = 1
     @election.startdate = Time.now
+    @election.type = 'Election'
     
     holder = create_theme_hash
     unless holder.values.all? {|v| v.has_value?("")}

Benjamin Mako Hill || Want to submit a patch?