summaryrefslogtreecommitdiff
path: root/lib/rexml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml')
-rw-r--r--lib/rexml/element.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb
index c415830c14..c30b150c0b 100644
--- a/lib/rexml/element.rb
+++ b/lib/rexml/element.rb
@@ -987,7 +987,7 @@ module REXML
end
def to_a
- values.flatten
+ enum_for(:each_attribute).to_a
end
# Returns the number of attributes the owning Element contains.