summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-22 08:12:03 -0700
committermo khan <mo@mokhan.ca>2014-02-22 08:12:03 -0700
commit50bd8659e26cebb8c729b25f09eef7e3a25111c5 (patch)
tree728ddcb0b56be47d299c23636c5a94ef325716ff /app
parent86036fa0e99d77b34edf16349b1e681db660558f (diff)
add well types to the json response.
Diffstat (limited to 'app')
-rw-r--r--app/views/v1/licenses/index.jbuilder13
1 files changed, 11 insertions, 2 deletions
diff --git a/app/views/v1/licenses/index.jbuilder b/app/views/v1/licenses/index.jbuilder
index 1cc2069..2f31916 100644
--- a/app/views/v1/licenses/index.jbuilder
+++ b/app/views/v1/licenses/index.jbuilder
@@ -1,3 +1,12 @@
-json.array! @licenses do |license|
- json.partial! 'v1/licenses/license', license: license
+json.licenses do
+ json.array! @licenses do |license|
+ json.partial! 'v1/licenses/license', license: license
+ end
+end
+json.well_types do
+ json.array! @well_types do |well_type|
+ json.id well_type.id
+ json.acronym well_type.acronym
+ json.name well_type.name
+ end
end