]> projects.mako.cc - selectricity/blobdiff - app/models/election.rb
Mostly worked on the candidate adding feature to include pictures and
[selectricity] / app / models / election.rb
index 61286e1c1829c00e5880dacffda74370de7033bb..69038e473946ceddd9a2a23e5fe7dae7571ba31f 100644 (file)
@@ -2,6 +2,7 @@ class Election < ActiveRecord::Base
   has_many :candidates
   has_many :voters
   has_many :votes
+  belongs_to :user
   validates_presence_of :name, :description
 
   require 'date'

Benjamin Mako Hill || Want to submit a patch?