diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-03 12:12:17 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-03 12:12:17 -0300 |
commit | d4422c36ca265c076825e2ad94511f4e900c3015 (patch) | |
tree | 68f775e71dd69e988823b5b6300a25c6e7c321de /guides/source | |
parent | 0691810bca0d9e79abb9b9943b618159920b687c (diff) | |
parent | d2623476f33a5c20eb42abec415fa372af9ecd13 (diff) | |
download | rails-d4422c36ca265c076825e2ad94511f4e900c3015.tar.gz rails-d4422c36ca265c076825e2ad94511f4e900c3015.tar.bz2 rails-d4422c36ca265c076825e2ad94511f4e900c3015.zip |
Merge pull request #16038 from tbpgr/fix_guide_active_record_validations
Fix guide. sample code syntax error.[ci skip]
Diffstat (limited to 'guides/source')
-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 cb459626d5..7ec4ab312d 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -871,7 +871,7 @@ should happen, an `Array` can be used. Moreover, you can apply both `:if` and ```ruby class Computer < ActiveRecord::Base validates :mouse, presence: true, - if: ["market.retail?", :desktop?] + if: ["market.retail?", :desktop?], unless: Proc.new { |c| c.trackpad.present? } end ``` |