aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authortbpgr <tbpgr@tbpgr.jp>2014-07-03 23:58:23 +0900
committertbpgr <tbpgr@tbpgr.jp>2014-07-04 00:05:11 +0900
commitd2623476f33a5c20eb42abec415fa372af9ecd13 (patch)
tree4d90610b353a44ba785f5ee52209e73c4ca96020 /guides
parent03c9c0e2fa83e4ccaefb3b06970b9c3efe170be5 (diff)
downloadrails-d2623476f33a5c20eb42abec415fa372af9ecd13.tar.gz
rails-d2623476f33a5c20eb42abec415fa372af9ecd13.tar.bz2
rails-d2623476f33a5c20eb42abec415fa372af9ecd13.zip
Fix guide. sample code syntax error.[ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_validations.md2
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
```