We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33ebf9b commit 84f81f5Copy full SHA for 84f81f5
activerecord/lib/active_record/attribute_methods/read.rb
@@ -39,7 +39,7 @@ def define_method_attribute(attr_name)
39
if serialized_attributes.include?(attr_name)
40
define_read_method_for_serialized_attribute(attr_name)
41
else
42
- define_read_method(attr_name.to_sym, attr_name, columns_hash[attr_name])
+ define_read_method(attr_name, attr_name, columns_hash[attr_name])
43
end
44
45
if attr_name == primary_key && attr_name != "id"
0 commit comments