.jbuilder as a Ruby extension

This commit is contained in:
Paul Chaignon
2015-03-06 07:07:41 +01:00
parent ad6030b0e8
commit 0d848b342f
2 changed files with 5 additions and 0 deletions

View File

@@ -2666,6 +2666,7 @@ Ruby:
- .gemspec
- .god
- .irbrc
- .jbuilder
- .mspec
- .pluginspec
- .podspec

View File

@@ -0,0 +1,4 @@
json.array!(@courts) do |court|
json.extract! court, :id, :name_r, :region, :region_r, :email, :website
json.url court_url(court, format: :json)
end