agenda-libre-ruby/app/views/regions/index.json.jbuilder

5 lines
113 B
Ruby

json.array!(@regions) do |region|
json.extract! region, :name
json.url region_url(region, format: :json)
end