Method: Glib::Json::Libs#glib_json_handle_500
- Defined in:
- app/controllers/concerns/glib/json/libs.rb
#glib_json_handle_500(exception) ⇒ Object
63 64 65 66 67 68 69 70 |
# File 'app/controllers/concerns/glib/json/libs.rb', line 63 def glib_json_handle_500(exception) if json_ui_activated? && Rails.env.production? .error(exception, :use_exception_level_filters => true) if defined?() render file: Rails.root.join('public', '500.html'), status: :internal_server_error else raise exception end end |