Skip to content

Commit

Permalink
camelcase in meta object
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 15, 2018
1 parent f453aec commit 3fc7a9a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/controllers/client_prefixes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => @client_prefixes.total_pages,
"totalPages" => @client_prefixes.total_pages,
page: page[:number].to_i,
years: years
}.compact
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/clients_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => total_pages,
"totalPages" => total_pages,
page: page[:number],
years: years,
providers: providers,
Expand Down
20 changes: 10 additions & 10 deletions app/controllers/dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => total_pages,
"totalPages" => total_pages,
page: page[:number].to_i
}.compact

Expand Down Expand Up @@ -159,23 +159,23 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => total_pages,
"totalPages" => total_pages,
page: page[:number],
states: states,
"resource-types" => resource_types,
"resourceTypes" => resource_types,
created: created,
registered: registered,
providers: providers,
clients: clients,
prefixes: prefixes,
"schema-versions" => schema_versions,
"schemaVersions" => schema_versions,
sources: sources,
"link-checks-status" => link_checks_status,
"links-checked" => links_checked,
"links-with-schema-org" => links_with_schema_org,
"link-checks-schema-org-id" => link_checks_schema_org_id,
"link-checks-dc-identifier" => link_checks_dc_identifier,
"link-checks-citation-doi" => link_checks_citation_doi
"linkChecksStatus" => link_checks_status,
"linksChecked" => links_checked,
"linksWithSchemaOrg" => links_with_schema_org,
"linkChecksSchemaOrgId" => link_checks_schema_org_id,
"linkChecksDcIdentifier" => link_checks_dc_identifier,
"linkChecksCitationDoi" => link_checks_citation_doi
}.compact

options[:links] = {
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/media_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => total_pages,
"totalPages" => total_pages,
page: page[:number].to_i
}.compact

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/metadata_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => total_pages,
"totalPages" => total_pages,
page: page[:number].to_i
}.compact

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/prefixes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => @prefixes.total_pages,
"totalPages" => @prefixes.total_pages,
page: page[:number].to_i,
states: states,
providers: providers,
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/provider_prefixes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => @provider_prefixes.total_pages,
"totalPages" => @provider_prefixes.total_pages,
page: page[:number].to_i,
states: states,
providers: providers,
Expand Down
6 changes: 3 additions & 3 deletions app/controllers/providers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def index
options = {}
options[:meta] = {
total: total,
"total-pages" => total_pages,
"totalPages" => total_pages,
page: page[:number],
years: years,
regions: regions,
"organization-types" => organization_types,
"focus-areas" => focus_areas
"organizationTypes" => organization_types,
"focusAreas" => focus_areas
}.compact

options[:links] = {
Expand Down

0 comments on commit 3fc7a9a

Please sign in to comment.