add relationship

master
Coleman 2008-10-11 17:35:00 -05:00
parent ad96f89656
commit 309b0e7374
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ class Photo < ActiveRecord::Base
attr_protected :email_hash
has_many :votes, :dependent => :destroy
has_many :photo_favorites, :dependent => :destroy
before_create :validate_image_sanity
before_create :hashify_email