Created
May 14, 2014 16:39
-
-
Save paulmederos/13c801284b44b8da78b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def as_json(options={}) | |
{ | |
# Additions to make consistent with the new version of the API and iOS client | |
id: self.id, | |
user: { | |
id: @user.id, | |
display_name: @user.display_name, | |
username: @user.username, | |
avatar: { | |
square: @user.avatar.url(:square), | |
thumb: @user.avatar.url(:thumb) | |
} | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment