Change active_model.i18n_customize_full_message default from false to true#50406
Open
stevepolitodesign wants to merge 3 commits intorails:mainfrom
Open
Change active_model.i18n_customize_full_message default from false to true#50406stevepolitodesign wants to merge 3 commits intorails:mainfrom
active_model.i18n_customize_full_message default from false to true#50406stevepolitodesign wants to merge 3 commits intorails:mainfrom
Conversation
6e086a1 to
3e7e750
Compare
…` to `true` Follow-up to rails#32956 and rails#35789 The introduction of this configuration in rails#32956 stated that: > The goal of this PR is to make it easier for an app to transition from a #{attribute} #{message} to a #{message}, full_message error format. However, because the default value was set to `false`, this feature was difficult to discover. `config.active_model.i18n_customize_full_message` defaults to `true` for `config.load_defaults 7.2` and above.
3e7e750 to
f120711
Compare
Contributor
Author
stevepolitodesign
pushed a commit
to thoughtbot/suspenders
that referenced
this pull request
Apr 5, 2024
Creates generator to configure the development environment. Keeps parity with Rails as much as possible in an effort to avoid drift with Rails standards. It's possible a future release of Rails will alleviate us from having to do the following: - enable `active_model.i18n_customize_full_message` which is being addressed in [#50406][] - enable `active_record.query_log_tags_enabled` which is being addressed in [#51342][] [#50406]: rails/rails#50406 [#51342]: rails/rails#51342
stevepolitodesign
pushed a commit
to thoughtbot/suspenders
that referenced
this pull request
Apr 5, 2024
Creates generator to configure the development environment. Keeps parity with Rails as much as possible in an effort to avoid drift with Rails standards. It's possible a future release of Rails will alleviate us from having to do the following: - enable `active_model.i18n_customize_full_message` which is being addressed in [#50406][] - enable `active_record.query_log_tags_enabled` which is being addressed in [#51342][] [#50406]: rails/rails#50406 [#51342]: rails/rails#51342
stevepolitodesign
pushed a commit
to thoughtbot/suspenders
that referenced
this pull request
Apr 5, 2024
Creates generator to configure the development environment. Keeps parity with Rails as much as possible in an effort to avoid drift with Rails standards. It's possible a future release of Rails will alleviate us from having to do the following: - enable `active_model.i18n_customize_full_message` which is being addressed in [#50406][] - enable `active_record.query_log_tags_enabled` which is being addressed in [#51342][] [#50406]: rails/rails#50406 [#51342]: rails/rails#51342
stevepolitodesign
pushed a commit
to thoughtbot/suspenders
that referenced
this pull request
Apr 5, 2024
Creates generator to configure the development environment. Keeps parity with Rails as much as possible in an effort to avoid drift with Rails standards. It's possible a future release of Rails will alleviate us from having to do the following: - enable `active_model.i18n_customize_full_message` which is being addressed in [#50406][] - enable `active_record.query_log_tags_enabled` which is being addressed in [#51342][] [#50406]: rails/rails#50406 [#51342]: rails/rails#51342
stevepolitodesign
pushed a commit
to thoughtbot/suspenders
that referenced
this pull request
Apr 5, 2024
Creates generator to configure the development environment. Keeps parity with Rails as much as possible in an effort to avoid drift with Rails standards. It's possible a future release of Rails will alleviate us from having to do the following: - enable `active_model.i18n_customize_full_message` which is being addressed in [#50406][] - enable `active_record.query_log_tags_enabled` which is being addressed in [#51342][] [#50406]: rails/rails#50406 [#51342]: rails/rails#51342
stevepolitodesign
pushed a commit
to thoughtbot/suspenders
that referenced
this pull request
Apr 5, 2024
Creates generator to configure the development environment. Keeps parity with Rails as much as possible in an effort to avoid drift with Rails standards. It's possible a future release of Rails will alleviate us from having to do the following: - enable `active_model.i18n_customize_full_message` which is being addressed in [#50406][] - enable `active_record.query_log_tags_enabled` which is being addressed in [#51342][] [#50406]: rails/rails#50406 [#51342]: rails/rails#51342
stevepolitodesign
added a commit
to thoughtbot/suspenders
that referenced
this pull request
Apr 5, 2024
Creates generator to configure the development environment. Keeps parity with Rails as much as possible in an effort to avoid drift with Rails standards. It's possible a future release of Rails will alleviate us from having to do the following: - enable `active_model.i18n_customize_full_message` which is being addressed in [#50406][] - enable `active_record.query_log_tags_enabled` which is being addressed in [#51342][] [#50406]: rails/rails#50406 [#51342]: rails/rails#51342 Co-authored-by: Steve Polito <stevepolito@hey.com>
stevepolitodesign
added a commit
to thoughtbot/suspenders
that referenced
this pull request
May 10, 2024
Creates generator to configure the development environment. Keeps parity with Rails as much as possible in an effort to avoid drift with Rails standards. It's possible a future release of Rails will alleviate us from having to do the following: - enable `active_model.i18n_customize_full_message` which is being addressed in [#50406][] - enable `active_record.query_log_tags_enabled` which is being addressed in [#51342][] [#50406]: rails/rails#50406 [#51342]: rails/rails#51342 Co-authored-by: Steve Polito <stevepolito@hey.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation / Background
Follow-up to #32956 and #35789
The introduction of this configuration in #32956 stated that:
However, because the default value was set to
false, this feature was difficult to discover.Moving forward, consumers will be able to override the format of an individual attribute by default.
Detail
config.active_model.i18n_customize_full_messagedefaults totrueforconfig.load_defaults 7.2and aboveChecklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]