From 79563cc2a267b01861053088420c1655f548af5a Mon Sep 17 00:00:00 2001 From: Coleman Date: Fri, 17 Oct 2008 01:28:21 -0500 Subject: [PATCH] protected attribute --- app/models/photo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/photo.rb b/app/models/photo.rb index fb79081..bea1c35 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -1,7 +1,7 @@ class Photo < ActiveRecord::Base attr_accessor :email attr_accessor :file - attr_protected :email_hash + attr_protected :email_hash, :approved validates_presence_of :user_id