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