]> projects.mako.cc - selectricity-live/blob - app/models/picture.rb
fixed up a series of things in prepration for the stress test on friday
[selectricity-live] / app / models / picture.rb
1 # Selectricity: Voting Machinery for the Masses
2 # Copyright (C) 2007, 2008 Benjamin Mako Hill <mako@atdot.cc>
3 # Copyright (C) 2007 Massachusetts Institute of Technology
4 #
5 # This program is free software. Please see the COPYING file for
6 # details.
7
8 class Picture < ActiveRecord::Base
9   belongs_to :candidate
10  
11   has_attachment  :storage => :file_system, 
12                   :max_size => 1.megabytes,
13                   :thumbnails => { :thumb => '70x53' },
14                   :processor => :Rmagick
15
16   validates_as_attachment
17
18 end
19

Benjamin Mako Hill || Want to submit a patch?