Commit ac868a027c8e5abc38ff09b6cc91c5bd8813664d

Authored by Andrey Karpikov
1 parent 9c62827d

render not found page

... ... @@ -151,5 +151,12 @@ module Kanjai
151 151 @page_layer ||= page_data.page.page_template.get_html_content
152 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 161 end
155 162 end
\ No newline at end of file
... ...
1 1 module Kanjai
2   - VERSION = "0.0.344"
  2 + VERSION = "0.0.345"
3 3 end
... ...