In our application, we use Rails's single-table inheritance.
E.g. we have a Location model, from which the Datacenter model inherits. Some localization data is specific to the child classes, and therefore in activerecord.attributes.datacenter.<attribute_name>, other attributes are generic for all sub-types of Location (e.g. identifier).
Rails correctly resolves Datacenter.human_attribute_name(:identifier) to active_record.attributes.location.identifier. But with the prism scanner in rails mode, i18n-tasks reports activerecord.attributes.datacenter.identifier as missing.
In our application, we use Rails's single-table inheritance.
E.g. we have a
Locationmodel, from which theDatacentermodel inherits. Some localization data is specific to the child classes, and therefore inactiverecord.attributes.datacenter.<attribute_name>, other attributes are generic for all sub-types ofLocation(e.g.identifier).Rails correctly resolves
Datacenter.human_attribute_name(:identifier)toactive_record.attributes.location.identifier. But with the prism scanner inrailsmode,i18n-tasksreportsactiverecord.attributes.datacenter.identifieras missing.