Class: Plezi::Base::Err500Ctrl

Inherits:
Object
  • Object
show all
Includes:
Controller
Defined in:
lib/plezi/router/errors.rb

Instance Attribute Summary

Attributes included from Controller

#_pl__client, #cookies, #params, #request, #response

Instance Method Summary collapse

Methods included from Controller

#_pl_ad_httpreview, #_pl_ad_map, #_pl_ad_review, #_pl_respond, #_pl_ws_map, #close, #extend, included, #keys, #on_close, #on_drained, #on_message, #on_open, #on_shutdown, #open?, #pending, #pre_connect, #publish, #redirect_to, #render, #send_data, #send_file, #subscribe, #to_s, #url_for, #values, #write

Instance Method Details

#indexObject



16
17
18
19
20
21
# File 'lib/plezi/router/errors.rb', line 16

def index
   response.status = 500
   render('500') || 'Internal Error 500.'
rescue
   'Internal Error 500.'
end

#requested_methodObject



23
24
25
# File 'lib/plezi/router/errors.rb', line 23

def requested_method
   :index
end