From 01e38d8c89b4568a96ac10eefe8c3be2a3abf7ab Mon Sep 17 00:00:00 2001 From: Hendy Tanata Date: Mon, 22 Oct 2012 22:49:01 +0800 Subject: [PATCH] Fix code example in AR::AttributeMethods::BeforeTypeCast. --- .../lib/active_record/attribute_methods/before_type_cast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,