From 0ee7dcfd28f19d6f3af4a8cb241c804d5f3f3942 Mon Sep 17 00:00:00 2001 From: Giallombardo Nathan Date: Fri, 16 Aug 2024 08:56:14 +0000 Subject: [PATCH] fix rails 7.0 --- lib/couchbase-orm/attributes/dynamic.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/couchbase-orm/attributes/dynamic.rb b/lib/couchbase-orm/attributes/dynamic.rb index cec07850..e5c29622 100644 --- a/lib/couchbase-orm/attributes/dynamic.rb +++ b/lib/couchbase-orm/attributes/dynamic.rb @@ -27,6 +27,7 @@ def respond_to?(name, include_private = false) # # @return [ Object ] value of attribute def _assign_attribute(name, value) + name = name.to_s responds = name.reader == 'id' || respond_to?(name.writer) if responds public_send(name.writer, value)