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

Example had results the wrong way round [ci skip]

This commit is contained in:
Patrick Copeland 2016-06-16 08:54:26 +12:00
parent d4514e3be1
commit acf9391c98

View file

@ -503,9 +503,9 @@ second = Article.create! title: "Brace yourself",
status: "draft",
published_at: 1.month.ago
Article.count # => 1
first.archive!
Article.count # => 2
first.archive!
Article.count # => 1
```
NOTE: This application only cares about non-archived `Articles`. A view also