lib/ki/helpers.rb in ki-0.4.3 vs lib/ki/helpers.rb in ki-0.4.4

- old
+ new

@@ -10,10 +10,10 @@ # def to_class chain = self.split "::" klass = Kernel chain.each do |klass_string| - klass = klass.const_get klass_string.capitalize + klass = klass.const_get klass_string.split('_').map{|w| w.capitalize}.join('') end klass.is_a?(Class) ? klass : nil rescue NameError nil end