diff --git a/lib/couchbase-orm/attributes/dynamic.rb b/lib/couchbase-orm/attributes/dynamic.rb index 329c2369..afdc8f61 100644 --- a/lib/couchbase-orm/attributes/dynamic.rb +++ b/lib/couchbase-orm/attributes/dynamic.rb @@ -27,7 +27,7 @@ def respond_to?(name, include_private = false) # # @return [ Object ] value of attribute def _assign_attribute(name, value) - setter = name.writer + setter = name.to_s.writer responds = setter == 'id=' || respond_to?(setter) if responds public_send(setter, value)