Skip to content

Commit

Permalink
Entity metadata should return actual attributes if present
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhnyc committed Mar 29, 2017
1 parent 1c8062d commit e6c5cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynamics_crm/metadata/entity_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e6c5cd1

Please sign in to comment.