summaryrefslogtreecommitdiff
path: root/app/views/v1/shared/_license.jbuilder
blob: 066ed8bccadecee204cdc0ec7e3a9bdf6a2df9f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
json.id license.id
json.status license.status.to_s
json.partial! 'v1/shared/location', location: license.location
if license.confidential?
  json.partial! 'v1/shared/confidential_well_type', well_type: license.well_type
  json.partial! 'v1/shared/confidential_company'
else
  json.partial! 'v1/shared/well_type', well_type: license.well_type
  json.partial! 'v1/shared/company', company: license.company, applicant: license.applicant
end
json.issued_at license.issued_at.to_s
json.expired_at license.expired_at.to_s