]> projects.mako.cc - selectricity/blobdiff - app/models/election.rb
added template left out from last committ by accident
[selectricity] / app / models / election.rb
index ce7a0bceaff624a73231b6892b6743b0a36bd5f7..99d64f93cc55424b34f82dac24d0dce9a1e4fc73 100644 (file)
@@ -23,7 +23,7 @@ class Election < ActiveRecord::Base
 
   def other_methods
     if election_method
 
   def other_methods
     if election_method
-      @other_methods = ELECTION_TYPES.reject {|i| i == election_method}
+      @other_methods = ELECTION_TYPES.keys.reject {|i| i == election_method}
     else
       @other_methods = nil
     end
     else
       @other_methods = nil
     end

Benjamin Mako Hill || Want to submit a patch?