Class: ErrorResponseController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/error_response_controller.rb

Instance Method Summary collapse

Instance Method Details

#dummy_actionObject



19
20
21
22
23
24
25
# File 'app/controllers/error_response_controller.rb', line 19

def dummy_action
  if Rails::VERSION::MAJOR > 4
    render :body => nil
  else
    render :nothing => true
  end
end

#indexObject



11
12
13
14
15
16
17
# File 'app/controllers/error_response_controller.rb', line 11

def index
  if Rails::VERSION::MAJOR > 4
    render(:html => request.env['exception_handler.response'].html_safe, :layout => request.env['exception_handler.layout'])
  else
    render(:text => @_env['exception_handler.response'], :layout => @_env['exception_handler.layout'])
  end
end