diff options
Diffstat (limited to 'lib/rss/parser.rb')
-rw-r--r-- | lib/rss/parser.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index bf3b0b5d0..5856bddf2 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -365,7 +365,8 @@ module RSS def start_else_element(local, prefix, attrs, ns) class_name = self.class.class_name(_ns(ns, prefix), local) current_class = @last_element.class - if current_class.const_defined?(class_name) + if current_class.const_defined?(class_name, false) or + current_class.constants.include?(class_name.to_sym) next_class = current_class.const_get(class_name) start_have_something_element(local, prefix, attrs, ns, next_class) else |