diff --git a/app/json_schemas/json_api_schema.rb b/app/json_schemas/json_api_schema.rb index 53202656d0..b21f6e375c 100644 --- a/app/json_schemas/json_api_schema.rb +++ b/app/json_schemas/json_api_schema.rb @@ -37,7 +37,7 @@ class JsonApiSchema end def relationship_properties - relationships.to_h { |name| [name, relationship_schema(name)] } + relationships.index_with { |name| relationship_schema(name) } end # Example diff --git a/lib/reporting/reports/enterprise_fee_summary/base.rb b/lib/reporting/reports/enterprise_fee_summary/base.rb index c3a8a042f0..f3c0be2dd8 100644 --- a/lib/reporting/reports/enterprise_fee_summary/base.rb +++ b/lib/reporting/reports/enterprise_fee_summary/base.rb @@ -15,7 +15,7 @@ module Reporting end def custom_headers - data_attributes.map { |attr| [attr, I18n.t("header.#{attr}", scope: i18n_scope)] }.to_h + data_attributes.index_with { |attr| I18n.t("header.#{attr}", scope: i18n_scope) } end def i18n_scope