]> projects.mako.cc - selectricity/blobdiff - app/controllers/site_controller.rb
Blarg, finally got functional testing framework working. Had to override the TestSess...
[selectricity] / app / controllers / site_controller.rb
index a33a1fa16707403589ce4caebd0bb36161bb30d9..80fdfc406c3247b16651ae5c6b0bada8c2d35625 100644 (file)
@@ -1,6 +1,8 @@
 class SiteController < ApplicationController
   layout 'main'
-  model :user, :election, :account
+  require_dependency "user"
+  require_dependency "election"
+  require_dependency "account"
 
   def index
     @quickvotes = QuickVote.find(:all).sort {|a,b| b.enddate <=> a.enddate}[0..1]

Benjamin Mako Hill || Want to submit a patch?