diff options
Diffstat (limited to 'lib/rss')
-rw-r--r-- | lib/rss/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index a15e7446d1..babf15f52c 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -330,7 +330,7 @@ module RSS def start_else_element(local, prefix, attrs, ns) class_name = self.class.class_name(ns[prefix], local) current_class = @last_element.class - if current_class.constants.include?(class_name) + if current_class.const_defined?(class_name) next_class = current_class.const_get(class_name) start_have_something_element(local, prefix, attrs, ns, next_class) else |