Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use new hash syntax

  • Loading branch information...
commit 4d88e85d98639b4ea6ec7e67b8c5a52422199b0f 1 parent ddf07d2
@Mik-die Mik-die authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/migrations.md
View
4 guides/source/migrations.md
@@ -852,7 +852,7 @@ end
# app/models/product.rb
class Product < ActiveRecord::Base
- validates :flag, :inclusion => { :in => [true, false] }
+ validates :flag, inclusion: { in: [true, false] }
end
```
@@ -877,7 +877,7 @@ end
# app/models/product.rb
class Product < ActiveRecord::Base
- validates :flag, :inclusion => { :in => [true, false] }
+ validates :flag, inclusion: { in: [true, false] }
validates :fuzz, presence: true
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.