mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix use of deprecated keyword args syntax in reports
This commit is contained in:
@@ -8,7 +8,7 @@ module OrderManagement
|
||||
private
|
||||
|
||||
def i18n_translate(translation_key, options = {})
|
||||
I18n.t("order_management.reports.enterprise_fee_summary.#{translation_key}", options)
|
||||
I18n.t("order_management.reports.enterprise_fee_summary.#{translation_key}", **options)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -678,7 +678,7 @@ describe OrderManagement::Reports::EnterpriseFeeSummary::ReportService do
|
||||
# Helper methods for example group
|
||||
|
||||
def i18n_translate(translation_key, options = {})
|
||||
I18n.t("order_management.reports.enterprise_fee_summary.#{translation_key}", options)
|
||||
I18n.t("order_management.reports.enterprise_fee_summary.#{translation_key}", **options)
|
||||
end
|
||||
|
||||
def expect_total_attributes(total, expected_attribute_list)
|
||||
|
||||
Reference in New Issue
Block a user