Skip to content

Commit

Permalink
Prefer __id__ over object_id
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Nov 30, 2024
1 parent c4a4084 commit 94fd6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dry/core/memoizable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def define_memoizable(method:)
kernel = KERNEL

if parameters.empty?
key = "#{object_id}:#{method.name}".hash.abs
key = "#{__id__}:#{method.name}".hash.abs

define_method(method.name) do
value = super()
Expand Down

0 comments on commit 94fd6e8

Please sign in to comment.