Skip to content

Commit 93391af

Browse files
Shuhei Kitagawashishirmk
authored andcommitted
Remove redundant to_s
1 parent b4eaa04 commit 93391af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/extensions/has_one.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def self.define_accessors(mixin, reflection)
1111
super
1212
name = reflection.name
1313
mixin.class_eval <<-CODE, __FILE__, __LINE__ + 1
14-
def #{name.to_s}_id
14+
def #{name}_id
1515
association(:#{name}).reader.try(:id)
1616
end
1717
CODE

0 commit comments

Comments
 (0)