Skip to content

Prism does not properly handle single-table inheritance #739

Description

@JochenLutz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions