removed comments and Fixed Issue #184
This commit is contained in:
@@ -6,9 +6,6 @@ class Api::V1::UsersController < ApplicationController
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
# We removed the .as_json code from the model, just seemed like extra work.
|
||||
# dunno, maybe useful at a later time?
|
||||
#respond_with @user.admin ? User.all.as_json : @user.as_json
|
||||
respond_with @user.admin ? User.all : @user
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user