Permalink
Browse files

Fix guide. sample code syntax error.[ci skip]

  • Loading branch information...
1 parent 03c9c0e commit d2623476f33a5c20eb42abec415fa372af9ecd13 @tbpgr tbpgr committed Jul 3, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
```

0 comments on commit d262347

Please sign in to comment.