Skip to content

Commit 84f81f5

Browse files
committed
no need for to_sym
1 parent 33ebf9b commit 84f81f5

File tree

1 file changed

+1
-1
lines changed
  • activerecord/lib/active_record/attribute_methods

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/attribute_methods/read.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def define_method_attribute(attr_name)
3939
if serialized_attributes.include?(attr_name)
4040
define_read_method_for_serialized_attribute(attr_name)
4141
else
42-
define_read_method(attr_name.to_sym, attr_name, columns_hash[attr_name])
42+
define_read_method(attr_name, attr_name, columns_hash[attr_name])
4343
end
4444

4545
if attr_name == primary_key && attr_name != "id"

0 commit comments

Comments
 (0)