Skip to content

Feature: Find usage of rails model validation messages #599

@mmd-osm

Description

@mmd-osm

In openstreetmap/openstreetmap-website#5242, we were wondering why i18n-tasks is reporting a model validation message as unused, although it is being referenced from a model:

 validates :subject, :uniqueness => { :scope => :owner_id, :message => :is_already_muted }

At the moment, we need to add the error string to the i18n-tasks.yml file to ignore the warning:

ignore_unused:
  'activerecord.errors.models.user_mute.is_already_muted'

I'm not sure if we're missing something here. Is this the recommended approach to address model validation messages?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions