aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-07 16:50:44 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-07 16:50:44 -0800
commit84f81f57793689a1c5b5ef1fec800a29c96c30c5 (patch)
tree6f5e2c5f8e2e52700e1d9a96190c7f1a06e09fba /activerecord
parent33ebf9bd56427b424aa8fe12f7b4361cb9fd8414 (diff)
downloadrails-84f81f57793689a1c5b5ef1fec800a29c96c30c5.tar.gz
rails-84f81f57793689a1c5b5ef1fec800a29c96c30c5.tar.bz2
rails-84f81f57793689a1c5b5ef1fec800a29c96c30c5.zip
no need for to_sym
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods/read.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb
index 8b56f24acf..b77076983e 100644
--- a/activerecord/lib/active_record/attribute_methods/read.rb
+++ b/activerecord/lib/active_record/attribute_methods/read.rb
@@ -39,7 +39,7 @@ module ActiveRecord
if serialized_attributes.include?(attr_name)
define_read_method_for_serialized_attribute(attr_name)
else
- define_read_method(attr_name.to_sym, attr_name, columns_hash[attr_name])
+ define_read_method(attr_name, attr_name, columns_hash[attr_name])
end
if attr_name == primary_key && attr_name != "id"