diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2018-01-11 08:47:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 08:47:14 -0500 |
commit | 5e8c79a6fafb8d7a84c272b3c9a0474a0d01b471 (patch) | |
tree | 7e347e70ec671695874e88672f732cfb072316a0 /guides/source/active_record_validations.md | |
parent | 2c08446e0c17a8813439d9325061caa589fbce9c (diff) | |
parent | 0ce768168610e97d4a726aa77aae748777e69465 (diff) | |
download | rails-5e8c79a6fafb8d7a84c272b3c9a0474a0d01b471.tar.gz rails-5e8c79a6fafb8d7a84c272b3c9a0474a0d01b471.tar.bz2 rails-5e8c79a6fafb8d7a84c272b3c9a0474a0d01b471.zip |
Merge pull request #31653 from ydakuka/fix-typo-0801
Fix typos [ci skip]
Diffstat (limited to 'guides/source/active_record_validations.md')
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index e9157f3db1..d076efcd54 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -953,7 +953,7 @@ should happen, an `Array` can be used. Moreover, you can apply both `:if` and ```ruby class Computer < ApplicationRecord validates :mouse, presence: true, - if: [Proc.new { |c| c.market.retail? }, :desktop?], + if: [Proc.new { |c| c.market.retail? }, :desktop?], unless: Proc.new { |c| c.trackpad.present? } end ``` |