this has been bugging me for ages, broken "fill your profile link" fixed AND bio updates when you save

This commit is contained in:
Sam
2013-04-12 10:07:46 +10:00
parent 04ca4077a7
commit 0f362c5474
4 changed files with 41 additions and 10 deletions

View File

@ -195,7 +195,7 @@ class ApplicationController < ActionController::Base
# If we were given a serializer, add the class to the json that comes back
if opts[:serializer].present?
json[obj.class.name.underscore] = opts[:serializer].new(obj).serializable_hash
json[obj.class.name.underscore] = opts[:serializer].new(obj, scope: guardian).serializable_hash
end
render json: MultiJson.dump(json)