From 83b68e1a1c703b1ad86ba82cd992581445ec3615 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 17 Jan 2023 01:40:01 +0000 Subject: [PATCH] Ruby 2.7: Fix RuboCop offense Performance/BindCall (#38134). git-svn-id: https://svn.redmine.org/redmine/trunk@22056 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/wiki_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5