1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Using 1.9 syntax for edge guides

This commit is contained in:
Rashmi Yadav 2013-06-12 23:04:40 +02:00
parent 3db3f0407e
commit ad694f2f26

View file

@ -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`