Revision b88cd3a2
Added by Dominic Cleal over 6 years ago
app/controllers/api/v1/dashboard_controller.rb | ||
---|---|---|
def index
|
||
status = Dashboard::Data.status(params[:search])
|
||
respond_to do |format|
|
||
format.yaml { render :text => status.to_yaml }
|
||
format.yaml { render :plain => status.to_yaml }
|
||
format.json { render :json => status }
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #20951 - Replace render :text with :plain