protected attribute

master
Coleman 2008-10-17 01:28:21 -05:00
parent 0d5100984e
commit 79563cc2a2
1 changed files with 1 additions and 1 deletions

View File

@ -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