summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-12-29 06:12:27 +0000
committerGo MAEDA <maeda@farend.jp>2021-12-29 06:12:27 +0000
commitb6a26a60f3d425f340adc76e27d38c19505f254c (patch)
tree14475ea267754be1db511bff8ea1cfbf8901faef /app/controllers
parent52aef905ff92ebb34b7b6dbf870405f2351b41b4 (diff)
downloadredmine-b6a26a60f3d425f340adc76e27d38c19505f254c.tar.gz
redmine-b6a26a60f3d425f340adc76e27d38c19505f254c.zip
Fixes for Performance/StringIdentifierArgument introduced in RuboCop Performance 1.13.0 (#35142).
git-svn-id: http://svn.redmine.org/redmine/trunk@21330 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/gantts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/gantts_controller.rb b/app/controllers/gantts_controller.rb
index 303fe3590..548fecc5f 100644
--- a/app/controllers/gantts_controller.rb
+++ b/app/controllers/gantts_controller.rb
@@ -41,7 +41,7 @@ class GanttsController < ApplicationController
respond_to do |format|
format.html {render :action => "show", :layout => !request.xhr?}
- if @gantt.respond_to?('to_image')
+ if @gantt.respond_to?(:to_image)
format.png do
send_data(@gantt.to_image,
:disposition => 'inline', :type => 'image/png',