diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-06-12 00:24:49 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-06-12 00:32:25 +0300 |
commit | d1941fe6dacc3fb725cf4ae544cb7f6d656df62a (patch) | |
tree | 6b33cde8584c8356182acc804a846a96d39e7b9c | |
parent | b05bcb8fef706ef45e2f273040083b1bbd180c6e (diff) | |
download | rails-d1941fe6dacc3fb725cf4ae544cb7f6d656df62a.tar.gz rails-d1941fe6dacc3fb725cf4ae544cb7f6d656df62a.tar.bz2 rails-d1941fe6dacc3fb725cf4ae544cb7f6d656df62a.zip |
Fix active_model/errors docs [ci skip]
- Fix indentation.
- Add a missing dot to the end of the sentence.
Related to #32956
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 2 | ||||
-rw-r--r-- | guides/source/configuring.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index d583d48b54..56404a036c 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -370,7 +370,7 @@ module ActiveModel # # person.errors.full_message(:name, 'is invalid') # => "Name is invalid" # - # The `"%{attribute} %{message}"` error format can be overridden with either + # The `"%{attribute} %{message}"` error format can be overridden with either # # * <tt>activemodel.errors.models.person/contacts/addresses.attributes.street.format</tt> # * <tt>activemodel.errors.models.person/contacts/addresses.format</tt> diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 4c2dea6721..50b506bc6e 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -307,7 +307,7 @@ All these configuration options are delegated to the `I18n` library. ### Configuring Active Model -* `config.active_model.i18n_full_message` is a boolean value which controls whether the `full_message` error format can be overridden at the attribute or model level in the locale files +* `config.active_model.i18n_full_message` is a boolean value which controls whether the `full_message` error format can be overridden at the attribute or model level in the locale files. ### Configuring Active Record |