diff --git a/lib/couchbase-orm/attributes/dynamic.rb b/lib/couchbase-orm/attributes/dynamic.rb index 524864aa..b48f425a 100644 --- a/lib/couchbase-orm/attributes/dynamic.rb +++ b/lib/couchbase-orm/attributes/dynamic.rb @@ -80,7 +80,7 @@ def define_dynamic_reader(name) instance_eval do define_singleton_method(name) do - @attributes[getter].value + @attributes[name].value end end end