aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/profile_photo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/profile_photo.rb')
-rw-r--r--app/models/profile_photo.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/profile_photo.rb b/app/models/profile_photo.rb
index 0811978fe..4ac684f5e 100644
--- a/app/models/profile_photo.rb
+++ b/app/models/profile_photo.rb
@@ -23,7 +23,9 @@ class ProfilePhoto < ActiveRecord::Base
WIDTH = 96
HEIGHT = 96
- # has_one :user
+ belongs_to :user
+
+ attr_accessor :draft
# deliberately don't strip_attributes, so keeps raw photo properly