summaryrefslogtreecommitdiffstats
path: root/lib/plugins/acts_as_attachable
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-01-16 21:55:30 +0000
committerGo MAEDA <maeda@farend.jp>2023-01-16 21:55:30 +0000
commit25a4be7269daba9cf03f943a91c502e716235aca (patch)
treeda7a171411208a577f024e9f8c287931220450b8 /lib/plugins/acts_as_attachable
parent5ebcddc023b753fb631d604365a6bae15af482bc (diff)
downloadredmine-25a4be7269daba9cf03f943a91c502e716235aca.tar.gz
redmine-25a4be7269daba9cf03f943a91c502e716235aca.zip
Use `require_relative` instead of `File.dirname(__FILE__) + ...` (#38093).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22052 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins/acts_as_attachable')
-rw-r--r--lib/plugins/acts_as_attachable/init.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/acts_as_attachable/init.rb b/lib/plugins/acts_as_attachable/init.rb
index fad72214c..16ca1a207 100644
--- a/lib/plugins/acts_as_attachable/init.rb
+++ b/lib/plugins/acts_as_attachable/init.rb
@@ -1,4 +1,4 @@
# frozen_string_literal: true
-require File.dirname(__FILE__) + '/lib/acts_as_attachable'
+require_relative 'lib/acts_as_attachable'
ActiveRecord::Base.send(:include, Redmine::Acts::Attachable)