Permalink
Browse files

Merge pull request #11295 from ankit8898/master

Replaced older rocket sign to new  ":"
  • Loading branch information...
2 parents a9a40b5 + 6a71d09 commit 29561d842b8680daa767dfbc4cd700a4fc9c12f0 @rafaelfranca rafaelfranca committed Jul 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/examples/validations.rb
@@ -25,5 +25,5 @@ def persisted?
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

0 comments on commit 29561d8

Please sign in to comment.