diff options
author | Hendy Tanata <htanata@gmail.com> | 2012-10-22 22:49:01 +0800 |
---|---|---|
committer | Hendy Tanata <htanata@gmail.com> | 2012-10-22 22:49:01 +0800 |
commit | 01e38d8c89b4568a96ac10eefe8c3be2a3abf7ab (patch) | |
tree | 15afa5a57f5360bac30565bd322413002d3929ee | |
parent | e041a50f2917f82950f9e5666f966d8992afd45d (diff) | |
download | rails-01e38d8c89b4568a96ac10eefe8c3be2a3abf7ab.tar.gz rails-01e38d8c89b4568a96ac10eefe8c3be2a3abf7ab.tar.bz2 rails-01e38d8c89b4568a96ac10eefe8c3be2a3abf7ab.zip |
Fix code example in AR::AttributeMethods::BeforeTypeCast.
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/before_type_cast.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/before_type_cast.rb b/activerecord/lib/active_record/attribute_methods/before_type_cast.rb index faee99ccd1..a23baeaced 100644 --- a/activerecord/lib/active_record/attribute_methods/before_type_cast.rb +++ b/activerecord/lib/active_record/attribute_methods/before_type_cast.rb @@ -14,7 +14,7 @@ module ActiveRecord # # task.attributes_before_type_cast # # => {"id"=>"1", "completed_on"=>"2012-10-21", ... } - # task.read_attribute_before_type_cast('id') # => 1 + # task.read_attribute_before_type_cast('id') # => "1" # task.read_attribute_before_type_cast('completed_on') # => "2012-10-21" # # In addition to #read_attribute_before_type_cast and #attributes_before_type_cast, |