diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-22 12:46:27 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-22 12:46:27 -0700 |
| commit | d62b19c584862b3c54559348475a93fffd985e7f (patch) | |
| tree | 88f214cbe76a7ad52555998ed66d062cc2a52d9d /app/views/v1 | |
| parent | f246a5b0d0fac8346035088257be328f63edf06f (diff) | |
load the location as expected.
Diffstat (limited to 'app/views/v1')
| -rw-r--r-- | app/views/v1/licenses/_license.jbuilder | 2 | ||||
| -rw-r--r-- | app/views/v1/licenses/_location.jbuilder | 6 |
2 files changed, 4 insertions, 4 deletions
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 |
