Browse Source

Ruby 2.7: Fix RuboCop offense Performance/BindCall (#38134).


git-svn-id: https://svn.redmine.org/redmine/trunk@22056 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.1.0
Go MAEDA 1 year ago
parent
commit
83b68e1a1c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/controllers/wiki_controller.rb

+ 1
- 1
app/controllers/wiki_controller.rb View 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

Loading…
Cancel
Save