Chatwoot/app/views/api/v1/accounts/agents/index.json.jbuilder
Sojan Jose 8c52a3a953
Chore: Remove duplication of user JBuilder (#911)
* Chore: Reduce duplication of user JBuilder
2020-05-31 23:10:20 +05:30

3 lines
104 B
Ruby

json.array! @agents do |agent|
json.partial! 'api/v1/models/agent.json.jbuilder', resource: agent
end