Closed vividtone closed 1 year ago
This change removes File.expand_path and __FILE__ from the parameter of require.
File.expand_path
__FILE__
require
The following is an example.
diff --git a/init.rb b/init.rb index 942a97a..acf43d1 100644 --- a/init.rb +++ b/init.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require File.expand_path('../init_redmica_ui_extension', __FILE__) +require_relative 'init_redmica_ui_extension' Redmine::Plugin.register :redmica_ui_extension do requires_redmine version_or_higher: '4.1'
This change removes
File.expand_path
and__FILE__
from the parameter ofrequire
.The following is an example.