aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/examples
diff options
context:
space:
mode:
authorAnkit Gupta-FIR <ankit_gupta-fir@external.mckinsey.com>2013-07-04 17:25:50 +0100
committerAnkit Gupta-FIR <ankit_gupta-fir@external.mckinsey.com>2013-07-04 17:25:50 +0100
commit6a71d09ad20bd0859c3229d0be21e40d21fc73ff (patch)
tree2fcc676c7137eae34e58b02ea15adf6b3d2d5270 /activemodel/examples
parent962925bffd27e5fe9c458fc81e348b890fb5be95 (diff)
downloadrails-6a71d09ad20bd0859c3229d0be21e40d21fc73ff.tar.gz
rails-6a71d09ad20bd0859c3229d0be21e40d21fc73ff.tar.bz2
rails-6a71d09ad20bd0859c3229d0be21e40d21fc73ff.zip
Replaced older rocket sign to new :
Diffstat (limited to 'activemodel/examples')
-rw-r--r--activemodel/examples/validations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/examples/validations.rb b/activemodel/examples/validations.rb
index 2c5cc11f49..c94cd17e18 100644
--- a/activemodel/examples/validations.rb
+++ b/activemodel/examples/validations.rb
@@ -25,5 +25,5 @@ person1 = Person.new
p person1.valid? # => false
p person1.errors.messages # => {:name=>["can't be blank"]}
-person2 = Person.new(:name => "matz")
+person2 = Person.new(name: 'matz')
p person2.valid? # => true