Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #11295 from ankit8898/master

Replaced older rocket sign to new  ":"
  • Loading branch information...
commit 29561d842b8680daa767dfbc4cd700a4fc9c12f0 2 parents a9a40b5 + 6a71d09
Rafael Mendonça França rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activemodel/examples/validations.rb
2  activemodel/examples/validations.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.