diff options
author | Mikhail Dieterle <MikDiet@gmail.com> | 2013-05-14 21:04:32 +0300 |
---|---|---|
committer | Mikhail Dieterle <MikDiet@gmail.com> | 2013-05-14 21:04:32 +0300 |
commit | 4d88e85d98639b4ea6ec7e67b8c5a52422199b0f (patch) | |
tree | 5da4b050bfc4ba31bc019e8d745d3e6c6d0b80f4 /guides/source | |
parent | ddf07d21834f4ad88c25334829348f5e4000fea0 (diff) | |
download | rails-4d88e85d98639b4ea6ec7e67b8c5a52422199b0f.tar.gz rails-4d88e85d98639b4ea6ec7e67b8c5a52422199b0f.tar.bz2 rails-4d88e85d98639b4ea6ec7e67b8c5a52422199b0f.zip |
Use new hash syntax
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/migrations.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/migrations.md b/guides/source/migrations.md index ceb1859c2f..550f8fdc3c 100644 --- a/guides/source/migrations.md +++ b/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 ``` |