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

- old
+ new

@@ -1,6 +1,15 @@ class String + # Converts a string to a class + # + # ==== Examples + # + # class User + # end + # + # "user".to_class == User + # def to_class chain = self.split "::" klass = Kernel chain.each do |klass_string| klass = klass.const_get klass_string.capitalize @@ -27,10 +36,10 @@ end end module Ki module Helpers - include ViewHelper + include Middleware::Helpers::View def css url render_haml "%link{:href => '#{url}', :rel => 'stylesheet'}" end