diff options
author | Shodai Suzuki <info@soartec-lab.work> | 2019-02-19 13:31:25 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-19 13:31:25 +0900 |
commit | 02e6abd8fd5ad883fd2f29fd5850e650dd121805 (patch) | |
tree | 8b1a4c66ea6f121200148c32c83c38b2d0032db1 | |
parent | d28548603244347cf97aa7021c54ea1eff75c9c4 (diff) | |
download | rails-02e6abd8fd5ad883fd2f29fd5850e650dd121805.tar.gz rails-02e6abd8fd5ad883fd2f29fd5850e650dd121805.tar.bz2 rails-02e6abd8fd5ad883fd2f29fd5850e650dd121805.zip |
Delete documentation inconsistency 'finally' for AR callbacks [ci skip] (#35303)
-rw-r--r-- | guides/source/active_record_callbacks.md | 2 | ||||
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md index 4579b748df..4568b467ef 100644 --- a/guides/source/active_record_callbacks.md +++ b/guides/source/active_record_callbacks.md @@ -310,7 +310,7 @@ end ### Using `:if` and `:unless` with a `Proc` -Finally, it is possible to associate `:if` and `:unless` with a `Proc` object. This option is best suited when writing short validation methods, usually one-liners: +It is possible to associate `:if` and `:unless` with a `Proc` object. This option is best suited when writing short validation methods, usually one-liners: ```ruby class Order < ApplicationRecord diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index 0fda7c5cfd..0c57802188 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -934,7 +934,7 @@ end ### Using a Proc with `:if` and `:unless` -Finally, it's possible to associate `:if` and `:unless` with a `Proc` object +It is possible to associate `:if` and `:unless` with a `Proc` object which will be called. Using a `Proc` object gives you the ability to write an inline condition instead of a separate method. This option is best suited for one-liners. |