lib/blather/xmpp_node.rb in blather-0.4.13 vs lib/blather/xmpp_node.rb in blather-0.4.14
- old
+ new
@@ -31,10 +31,10 @@
# @param [#to_s] name the name to lookup
# @param [String, nil] xmlns the namespace the node belongs to
# @return [Class, nil] the class appropriate for the name/ns combination
def self.class_from_registration(name, ns = nil)
name = name.to_s
- @@registrations[[name, ns]] || @@registrations[[name, nil]]
+ @@registrations[[name, ns]]
end
# Import an XML::Node to the appropriate class
#
# Looks up the class the node should be then creates it based on the