提交 ad694f2f 编写于 作者: R Rashmi Yadav

Using 1.9 syntax for edge guides

上级 3db3f040
......@@ -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`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册