summaryrefslogtreecommitdiff
path: root/lib/rss/parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rss/parser.rb')
-rw-r--r--lib/rss/parser.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb
index 1a8fdd4930..9b9ff59173 100644
--- a/lib/rss/parser.rb
+++ b/lib/rss/parser.rb
@@ -286,8 +286,8 @@ module RSS
@proc_stack.push(nil)
else
parent = "ROOT ELEMENT???"
- if current_class.const_defined?("TAG_NAME")
- parent = current_class.const_get("TAG_NAME")
+ if current_class.tag_name
+ parent = current_class.tag_name
end
raise NotExceptedTagError.new(local, parent)
end