]> projects.mako.cc - selectricity/blobdiff - app/controllers/election_controller.rb
Fix error when getting a quickvote result of nonexistent ident
[selectricity] / app / controllers / election_controller.rb
index df0aa7c53631ab968b7d2f6bf963172645ae4f3f..d3332948b4398a197ca8280d69ec8db351ea7be2 100644 (file)
@@ -1,5 +1,8 @@
 class ElectionController < ApplicationController
-  model :raw_voter_list, :voter, :vote, :candidate
+  require_dependency "raw_voter_list"
+  require_dependency "voter"
+  require_dependency "vote"
+  require_dependency "candidate"
   layout 'main'
 
   #before_filter :login_required

Benjamin Mako Hill || Want to submit a patch?