vidpush/app/views/campaigns/index.json.jbuilder

3 lines
100 B
Ruby

json.campaigns @campaigns do |campaign|
json.partial! 'campaigns/campaign', campaign: campaign
end