From 4a9d51425718bcf9a5e17f04114caacd0070dd54 Mon Sep 17 00:00:00 2001 From: Giallombardo Nathan Date: Wed, 14 Aug 2024 18:59:28 +0200 Subject: [PATCH] fix ruby 3.0 --- lib/couchbase-orm/attributes/dynamic.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/couchbase-orm/attributes/dynamic.rb b/lib/couchbase-orm/attributes/dynamic.rb index 16dae054..524864aa 100644 --- a/lib/couchbase-orm/attributes/dynamic.rb +++ b/lib/couchbase-orm/attributes/dynamic.rb @@ -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)