]> source.dussan.org Git - redmine.git/commitdiff
Ruby 2.7: Fix RuboCop offense Performance/BindCall (#38134).
authorGo MAEDA <maeda@farend.jp>
Tue, 17 Jan 2023 01:40:01 +0000 (01:40 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 17 Jan 2023 01:40:01 +0000 (01:40 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22056 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/wiki_controller.rb

index 4a7c0a63ba740aa41a75c0e9e070032c73215ddf..2669c60e6fd652988492add488826055d42763b8 100644 (file)
@@ -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