Skip to content

Commit

Permalink
H friendly names
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed May 3, 2019
1 parent fecc3ad commit eeda654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/providers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def index
}
render json: ProviderSerializer.new(@providers, options).serialized_json, status: :ok
end
header = %w(name provider_id year contact_name contact_address is_active description website region country_code logo_url focus_area organisation_type memmber_type address post_code city state twitter_handle ror_id role_name joined created updated deleted_at)
header = %w(name provider_id year contact_name contact_address is_active description website region country logo_url focus_area organisation_type memmber_type address post_code city state twitter_handle ror_id role_name joined created updated deleted_at)
format.csv { render request.format.to_sym => response.records.to_a, header: header }
end
rescue Elasticsearch::Transport::Transport::Errors::BadRequest => exception
Expand Down
4 changes: 2 additions & 2 deletions app/models/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def csv
is_active: is_active,
description: description,
website: website,
region: region,
country_code: country_code,
region: region_human_name,
country: country_name,
logo_url: logo_url,
focus_area: focus_area,
organization_type: organization_type,
Expand Down

0 comments on commit eeda654

Please sign in to comment.