* Refactoring to add helper method Prior to this commit, we made view level calls to service modules. This refactor provides convenience methods on the model. Furthermore, it addresses a few Rubocop violations that "come along for the ride." * Ensuring cached entity squaks like User * Fixing broken spec * Fixing typo
7 lines
273 B
Ruby
7 lines
273 B
Ruby
json.user do
|
|
json.extract!(user, :name, :username, :twitter_username, :github_username)
|
|
|
|
json.website_url user.processed_website_url
|
|
json.profile_image user.profile_image_url_for(length: 640)
|
|
json.profile_image_90 user.profile_image_url_for(length: 90)
|
|
end
|