lib/consty.rb in consty-1.0.2 vs lib/consty.rb in consty-1.0.3

- old
+ new

@@ -8,10 +8,10 @@ current_namespace = namespace while current_namespace do begin return secuential_get name, current_namespace rescue NameError - namespace_name = current_namespace.name.split('::')[0..-2].join('::') + namespace_name = current_namespace.name ? current_namespace.name.split('::')[0..-2].join('::') : '' if !namespace_name.empty? current_namespace = secuential_get namespace_name elsif current_namespace != Object current_namespace = Object else \ No newline at end of file