diff options
author | Go MAEDA <maeda@farend.jp> | 2023-01-17 01:40:01 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-01-17 01:40:01 +0000 |
commit | 83b68e1a1c703b1ad86ba82cd992581445ec3615 (patch) | |
tree | a08d4eb3955cf16b80e3d5b070bf239ad30e4e1a /app/controllers | |
parent | 0b6f4c6811a4a4e823674e3bb8b970ee46a9194b (diff) | |
download | redmine-83b68e1a1c703b1ad86ba82cd992581445ec3615.tar.gz redmine-83b68e1a1c703b1ad86ba82cd992581445ec3615.zip |
Ruby 2.7: Fix RuboCop offense Performance/BindCall (#38134).
git-svn-id: https://svn.redmine.org/redmine/trunk@22056 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/wiki_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 4a7c0a63b..2669c60e6 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -390,7 +390,7 @@ class WikiController < ApplicationController def initial_page_content(page) helper = Redmine::WikiFormatting.helper_for(Setting.text_formatting) extend helper unless self.instance_of?(helper) - helper.instance_method(:initial_page_content).bind(self).call(page) + helper.instance_method(:initial_page_content).bind_call(self, page) end def load_pages_for_index |