improper jbuilder syntax for output during API error handling

后端 未结 0 1245
梦毁少年i
梦毁少年i 2021-01-24 01:58

The following is a json.jbuildermethod intended to respond to an API call.

if @error_code_98?
  json.set! :chain_category do
    json.set! :error, @e         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题