From e6c5cd1a4f31972bf4f790c4f0a1313d314fb95c Mon Sep 17 00:00:00 2001 From: Matthew Hensrud Date: Wed, 29 Mar 2017 12:29:31 -0400 Subject: [PATCH] Entity metadata should return actual attributes if present --- lib/dynamics_crm/metadata/entity_metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamics_crm/metadata/entity_metadata.rb b/lib/dynamics_crm/metadata/entity_metadata.rb index 8b5b229..099b651 100644 --- a/lib/dynamics_crm/metadata/entity_metadata.rb +++ b/lib/dynamics_crm/metadata/entity_metadata.rb @@ -12,7 +12,7 @@ def initialize(document) end def attributes - return if @attributes.is_a?(Array) + return @attributes if @attributes.is_a?(Array) @attributes = document.get_elements("d:Attributes/d:AttributeMetadata").collect do |attr_metadata| AttributeMetadata.new(attr_metadata)