diff options
author | Yauheni Dakuka <yauheni.dakuka@gmail.com> | 2018-01-09 09:29:49 +0300 |
---|---|---|
committer | Yauheni Dakuka <yauheni.dakuka@gmail.com> | 2018-01-11 00:56:35 +0300 |
commit | 0ce768168610e97d4a726aa77aae748777e69465 (patch) | |
tree | 37879d0d6364809008c14f790b1b5c42358d1e8d /guides/source/active_record_validations.md | |
parent | a72473f0320cc58bea1b47c856c62f015d5da82b (diff) | |
download | rails-0ce768168610e97d4a726aa77aae748777e69465.tar.gz rails-0ce768168610e97d4a726aa77aae748777e69465.tar.bz2 rails-0ce768168610e97d4a726aa77aae748777e69465.zip |
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 ``` |