diff options
author | Patrick Robertson <patricksrobertson@gmail.com> | 2013-05-01 17:10:06 -0700 |
---|---|---|
committer | Patrick Robertson <patricksrobertson@gmail.com> | 2013-05-01 18:01:46 -0700 |
commit | eebb9ddf9ba559a510975c486fe59a4edc9da97d (patch) | |
tree | f5e7fe3933183c796cf82d2bada32417eb0b65e8 /activemodel/lib/active_model/validations/validates.rb | |
parent | dd1f36078eff18721eed76d236796c8d26d81e58 (diff) | |
download | rails-eebb9ddf9ba559a510975c486fe59a4edc9da97d.tar.gz rails-eebb9ddf9ba559a510975c486fe59a4edc9da97d.tar.bz2 rails-eebb9ddf9ba559a510975c486fe59a4edc9da97d.zip |
Convert ActiveModel to 1.9 hash syntax.
I also attempted to fix other styleguide violations such as
{ a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ).
Diffstat (limited to 'activemodel/lib/active_model/validations/validates.rb')
-rw-r--r-- | activemodel/lib/active_model/validations/validates.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb index 1eb0716891..9a1ff2ad39 100644 --- a/activemodel/lib/active_model/validations/validates.rb +++ b/activemodel/lib/active_model/validations/validates.rb @@ -159,9 +159,9 @@ module ActiveModel when Hash options when Range, Array - { :in => options } + { in: options } else - { :with => options } + { with: options } end end end |