Skip to content

Commit

Permalink
Add value variable back
Browse files Browse the repository at this point in the history
  • Loading branch information
Che-Chris committed Jan 14, 2019
1 parent 1e3d72d commit 5b24ab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nylas/model/attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b24ab4

Please sign in to comment.