FEATURE: Allow a user to upload an image for their expansion background.

This commit is contained in:
Robin Ward
2014-10-16 15:05:36 -04:00
parent bde0820cd4
commit 4d465362b5
11 changed files with 112 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ class UserSerializer < BasicUserSerializer
:created_at,
:website,
:profile_background,
:expansion_background,
:location,
:can_edit,
:can_edit_username,
@@ -117,6 +118,14 @@ class UserSerializer < BasicUserSerializer
profile_background.present?
end
def expansion_background
object.user_profile.expansion_background
end
def include_expansion_background?
expansion_background.present?
end
def location
object.user_profile.location
end