Class: ErrorResponseController

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

Instance Method Summary collapse

Instance Method Details

#dummy_actionObject



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

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

#indexObject



3
4
5
6
7
8
9
# File 'app/controllers/error_response_controller.rb', line 3

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