summaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 12:41:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 12:41:21 +0000
commit252450b44cf34ae861e0bbc55712a9941e223aa2 (patch)
tree9f7cffc57d25357c969b0ca683fdf04e85c72823 /app/controllers/application_controller.rb
parent319eeae14d02bad302b83b49aeac85aec4c24fd2 (diff)
downloadredmine-252450b44cf34ae861e0bbc55712a9941e223aa2.tar.gz
redmine-252450b44cf34ae861e0bbc55712a9941e223aa2.zip
code cleanup: rubocop: fix Performance/RedundantBlockCall in app/controllers/application_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18821 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 06e2d702c..02612e36f 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -486,7 +486,7 @@ class ApplicationController < ActionController::Base
if args.any?
redirect_to *args
elsif block_given?
- block.call
+ yield
else
raise "#redirect_to_referer_or takes arguments or a block"
end