/users/1234.json: include upload_limit/max_upload_limit/favorite_group_count.

This commit is contained in:
evazion
2017-04-29 10:45:24 -05:00
parent f7509433b1
commit e10327219d
2 changed files with 13 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ class UsersController < ApplicationController
def show
@user = User.find(params[:id])
@presenter = UserPresenter.new(@user)
respond_with(@user, :methods => [:wiki_page_version_count, :artist_version_count, :artist_commentary_version_count, :pool_version_count, :forum_post_count, :comment_count, :appeal_count, :flag_count, :positive_feedback_count, :neutral_feedback_count, :negative_feedback_count])
respond_with(@user, methods: @user.full_attributes)
end
def create