mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 12:31:40 +01:00
Fix "DEPRECATION WARNING: Rendering actions with '.' in the name is deprecated: common/error_messages.api" (#29914, #34985).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20895 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -744,7 +744,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def render_api_errors(*messages)
|
||||
@error_messages = messages.flatten
|
||||
render :template => 'common/error_messages.api', :status => :unprocessable_entity, :layout => nil
|
||||
render :template => 'common/error_messages', :format => [:api], :status => :unprocessable_entity, :layout => nil
|
||||
end
|
||||
|
||||
# Overrides #_include_layout? so that #render with no arguments
|
||||
|
||||
Reference in New Issue
Block a user