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)