Actions
Patch #38093
closedUse require_relative instead of generating the full path for a file
Description
In the code of Redmine, you can find many require methods that builds the absolute path of a file using File.expand_path and __FILE__:
require File.expand_path('../../test_helper', __FILE__)
I think using `require_relative` can make those simpler and more readable, as shown below.
require_relative '../test_helper'
Files
Actions