From a2de855eb6f5f02c7a14c29373baab2508d3ab19 Mon Sep 17 00:00:00 2001 From: Coleman Date: Fri, 17 Oct 2008 02:58:41 -0500 Subject: [PATCH] set protected attribute so that the email gets saved --- 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 bea1c35..db5c2b6 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -144,7 +144,7 @@ class Photo < ActiveRecord::Base # Renders the email into a hashed string for later retrieval. # def hashify_email - email_hash = User.salted_string(email) unless email.to_s.empty? + self.email_hash = User.salted_string(email) if self.email_hash.to_s.empty? and !email.to_s.empty? true end