diff options
author | Rashmi Yadav <rays.rashmi@gmail.com> | 2013-06-12 23:04:40 +0200 |
---|---|---|
committer | Rashmi Yadav <rays.rashmi@gmail.com> | 2013-06-12 23:04:40 +0200 |
commit | ad694f2f264b5afe04af77b3f43971984f32808c (patch) | |
tree | 508cba305c74f55ab2035f296b421345280bda88 /guides | |
parent | 3db3f0407e154fcc55566d2cd3b41854912a6365 (diff) | |
download | rails-ad694f2f264b5afe04af77b3f43971984f32808c.tar.gz rails-ad694f2f264b5afe04af77b3f43971984f32808c.tar.bz2 rails-ad694f2f264b5afe04af77b3f43971984f32808c.zip |
Using 1.9 syntax for edge guides
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_validations.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index e155a2f7b3..12be7c1dec 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -736,8 +736,8 @@ class Topic < ActiveRecord::Base validates :title, length: { is: 5 }, allow_blank: true end -Topic.create("title" => "").valid? # => true -Topic.create("title" => nil).valid? # => true +Topic.create(title: "").valid? # => true +Topic.create(title: nil).valid? # => true ``` ### `:message` |