Skip to content

Commit

Permalink
fix ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Giallombardo Nathan committed Aug 14, 2024
1 parent 4d2f0d2 commit 4a9d514
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/couchbase-orm/attributes/dynamic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ def method_missing(name, *args)
attr = name.to_s
getter = attr.reader

return super if getter == 'id'
return super if attributes.key?(getter)
return super unless getter == 'id' && attributes.key?(getter)

if attr.writer?
define_dynamic_writer(getter)
Expand Down

0 comments on commit 4a9d514

Please sign in to comment.