Class: I18nProofreading::Suggestion

Inherits:
ApplicationRecord show all
Defined in:
app/models/i18n_proofreading/suggestion.rb

Overview

A proposed wording for one translation key in one locale. Author attribution is optional and stored as loose fields (no foreign key to the host's user table) so the model is portable across apps with different user models.

Constant Summary collapse

STATUSES =

Lifecycle of a proposed wording: a fresh suggestion is pending until a developer applies it to the locale files or rejects it. String-backed so the column stays human-readable; prefixed so the generated methods read as status_pending? / Suggestion.status_applied and never clash.

%w[pending applied rejected].freeze