mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Style Rails/IndexWith
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user