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:
parent
3db3f0407e
commit
ad694f2f26
1 changed files with 2 additions and 2 deletions
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue