Commit ac868a027c8e5abc38ff09b6cc91c5bd8813664d

Authored by Andrey Karpikov
1 parent 9c62827d

render not found page

@@ -151,5 +151,12 @@ module Kanjai @@ -151,5 +151,12 @@ module Kanjai
151 @page_layer ||= page_data.page.page_template.get_html_content 151 @page_layer ||= page_data.page.page_template.get_html_content
152 end 152 end
153 153
  154 + def class_exists?(class_name)
  155 + klass = Module.const_get(class_name)
  156 + return klass.is_a?(Class)
  157 + rescue NameError
  158 + return false
  159 + end
  160 +
154 end 161 end
155 end 162 end
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.344" 2 + VERSION = "0.0.345"
3 end 3 end