Project

General

Profile

Patch #24323 » application_controller.rb.patch

Pavel Rosický, 2016-11-11 11:06

View differences:

application_controller.rb (working copy)
format.html {
render :template => 'common/error', :layout => use_layout, :status => @status
}
format.js {
render :status => @status, :text => "alert(\"#{@status}: #{@message}\")"
}
format.api {
@error_messages = [@message]
render :template => 'common/error_messages.api', :status => @status
}
format.any { head @status }
end
end
(1-1/2)