From f839e619d48e8101999ad046a5ca632289139b6e Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Wed, 10 Oct 2012 13:45:47 +0200 Subject: Use a 1.9 Hash syntax in README files (fixes thanks to @vijaydev) --- activemodel/README.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/README.rdoc') diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc index b4565b5881..fc34d69ff6 100644 --- a/activemodel/README.rdoc +++ b/activemodel/README.rdoc @@ -23,7 +23,7 @@ to integrate with Action Pack out of the box: ActiveModel::Model. validates_presence_of :name end - person = Person.new(:name => 'bob', :age => '18') + person = Person.new(name: 'bob', age: '18') person.name # => 'bob' person.age # => '18' person.valid? # => true -- cgit v1.2.3