Files
codeocean/app/views/error_templates/index.json.jbuilder
2017-07-12 10:11:52 +02:00

5 lines
151 B
Ruby

json.array!(@error_templates) do |error_template|
json.extract! error_template, :id
json.url error_template_url(error_template, format: :json)
end