From 5b24ab443af1a7cbba4f0d2ea8c79422f8f394de Mon Sep 17 00:00:00 2001 From: Christopher Che Date: Mon, 14 Jan 2019 08:56:29 -0500 Subject: [PATCH] Add value variable back --- lib/nylas/model/attributes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nylas/model/attributes.rb b/lib/nylas/model/attributes.rb index 2cea2953..0860ebc6 100644 --- a/lib/nylas/model/attributes.rb +++ b/lib/nylas/model/attributes.rb @@ -32,6 +32,7 @@ def merge(new_data) def to_h(keys: attribute_definitions.keys) keys.each_with_object({}) do |key, casted_data| + value = attribute_definitions[key].serialize(self[key]) casted_data[key] = value unless value.nil? end end