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)