From d62b19c584862b3c54559348475a93fffd985e7f Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 22 Feb 2014 12:46:27 -0700 Subject: load the location as expected. --- app/views/v1/licenses/_license.jbuilder | 2 +- app/views/v1/licenses/_location.jbuilder | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/views/v1/licenses/_license.jbuilder b/app/views/v1/licenses/_license.jbuilder index 9d04606..c66fb3f 100644 --- a/app/views/v1/licenses/_license.jbuilder +++ b/app/views/v1/licenses/_license.jbuilder @@ -1,6 +1,6 @@ json.id license.id json.status license.status.to_s -json.partial! 'v1/licenses/location', location: license.to_json +json.partial! 'v1/licenses/location', location: license.location if license.confidential? json.partial! 'v1/licenses/confidential_well_type', well_type: license.well_type json.partial! 'v1/licenses/confidential_company' diff --git a/app/views/v1/licenses/_location.jbuilder b/app/views/v1/licenses/_location.jbuilder index b9c0625..5b43756 100644 --- a/app/views/v1/licenses/_location.jbuilder +++ b/app/views/v1/licenses/_location.jbuilder @@ -1,5 +1,5 @@ json.location do - json.township location["township"] - json.latitude location["latitude"] - json.longitude location["longitude"] + json.township location.township + json.latitude location.latitude + json.longitude location.longitude end -- cgit v1.2.3