mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Ruby 2.7: Fix RuboCop offense Performance/BindCall (#38134).
git-svn-id: https://svn.redmine.org/redmine/trunk@22056 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0b6f4c6811
commit
83b68e1a1c
@ -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…
x
Reference in New Issue
Block a user