Created by: hughfm
Problem:
Following on from changes in #492...
When collection partials are rendered in the context of a has_many
field, translations for the attribute labels are currently being looked up under the parent model's scope. For example, label for shipped_at
attribute on Order
model is looking in en: helpers: label: customer: shipped_at:
, rather than en: helpers: label: order: shipped_at:
Solution:
Use collection_presenter.resource_name
, which is scoped to the field being rendered, instead of resource_name
.