diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-22 07:38:49 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-22 07:38:49 -0700 |
| commit | 455c4f06a54b02dacbc5f93d437d07689dc03fc1 (patch) | |
| tree | e8d53730d1f50d9c4b72637ce78fbb0ef45dea77 /app | |
| parent | 2e7e24211668fc35f0cc417f3295d0728afedde8 (diff) | |
extract well_type partial.
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/v1/licenses/_license.json.jbuilder | 6 | ||||
| -rw-r--r-- | app/views/v1/licenses/_well_type.json.jbuilder | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/app/views/v1/licenses/_license.json.jbuilder b/app/views/v1/licenses/_license.json.jbuilder index d1e2aa8..58b9282 100644 --- a/app/views/v1/licenses/_license.json.jbuilder +++ b/app/views/v1/licenses/_license.json.jbuilder @@ -1,9 +1,5 @@ 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.partial! 'v1/licenses/well_type', well_type: license.well_type json.location do json.township license.location.township json.latitude license.location.latitude diff --git a/app/views/v1/licenses/_well_type.json.jbuilder b/app/views/v1/licenses/_well_type.json.jbuilder new file mode 100644 index 0000000..dd5176e --- /dev/null +++ b/app/views/v1/licenses/_well_type.json.jbuilder @@ -0,0 +1,5 @@ +json.well_type do + json.id well_type.id + json.acronym well_type.acronym + json.name well_type.name +end |
