From 85009727fccd91a27c658993417ca2d3b50c2364 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 22 Feb 2014 07:31:20 -0700 Subject: add json response for licenses#show. --- app/views/v1/licenses/show.jbuilder | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'app') diff --git a/app/views/v1/licenses/show.jbuilder b/app/views/v1/licenses/show.jbuilder index 98f59e8..6ada656 100644 --- a/app/views/v1/licenses/show.jbuilder +++ b/app/views/v1/licenses/show.jbuilder @@ -1,2 +1,16 @@ +json.id @license.id +json.well_type do + json.id @license.well_type.id + json.acronym @license.well_type.acronym + json.name @license.well_type.name +end +json.location do + json.township @license.location.township + json.latitude @license.location.latitude + json.longitude @license.location.longitude +end +json.company do + json.name @license.company.name +end json.issued_at @license.issued_at.to_s json.expired_at @license.expired_at.to_s -- cgit v1.2.3