diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-10-21 13:46:41 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-10-21 14:09:52 -0500 |
commit | 06e908c4e13a0f87f05f6115e13e6f5b8d20d499 (patch) | |
tree | 14ca67e4ed3904f2c12f8432fe5c2f83eda5f360 /activerecord | |
parent | 0ce7ea65e1b9be853a007379a35d93135fbba2aa (diff) | |
download | rails-06e908c4e13a0f87f05f6115e13e6f5b8d20d499.tar.gz rails-06e908c4e13a0f87f05f6115e13e6f5b8d20d499.tar.bz2 rails-06e908c4e13a0f87f05f6115e13e6f5b8d20d499.zip |
Fix AR::AttributeMethods#[] example [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index 008696f6de..ca95329186 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -271,7 +271,7 @@ module ActiveRecord # class Person < ActiveRecord::Base # end # - # person = Person.new(name: 'Francesco', age: '22' + # person = Person.new(name: 'Francesco', age: '22') # person[:name] # => "Francesco" # person[:age] # => 22 def [](attr_name) |