mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Interface is wired up for Approving/Rejecting posts
This commit is contained in:
@ -219,6 +219,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def render_json_dump(obj, opts=nil)
|
||||
opts ||= {}
|
||||
obj['__rest_serializer'] = "1" if opts[:rest_serializer]
|
||||
render json: MultiJson.dump(obj), status: opts[:status] || 200
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user