Sha256: 9e902f405d640a9ead74401f18a8a28f5c64f72ab724e1a139b491e460d1b6ab
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
if(RailsExceptionHandler.configuration.activate?) class ErrorResponseController < ApplicationController 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 def dummy_action if Rails::VERSION::MAJOR > 4 render :body => nil else render :nothing => true end end end end
Version data entries
4 entries across 4 versions & 1 rubygems