diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-01 15:27:33 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-01 15:27:33 +0000 |
commit | d67eeabd53ba3bd2f241b4fce66739647c2bbddf (patch) | |
tree | 343c0ba34abafe7755238b725d4129cea0ffe4dc /app/controllers/application_controller.rb | |
parent | e74cc0b923b06b34f06a9971f9c674d9d748ed5d (diff) | |
download | redmine-d67eeabd53ba3bd2f241b4fce66739647c2bbddf.tar.gz redmine-d67eeabd53ba3bd2f241b4fce66739647c2bbddf.zip |
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
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7ddf58a4c..b5644e89d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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 |