summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-10-27 20:52:38 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-10-27 20:52:38 +0000
commit232db2441d9a610e0efb70749da85253aadbca0f (patch)
tree654fe0b5927e54685c5c321b39565e745570aafe /lib
parent3bb3886786bc2cda1f056695d8652d879aaff71b (diff)
downloadredmine-232db2441d9a610e0efb70749da85253aadbca0f.tar.gz
redmine-232db2441d9a610e0efb70749da85253aadbca0f.zip
Use full full path for require (#29914, #32938).
Patch by Takashi Kato. git-svn-id: http://svn.redmine.org/redmine/trunk@21264 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/gravatar/init.rb2
-rw-r--r--lib/plugins/open_id_authentication/init.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/gravatar/init.rb b/lib/plugins/gravatar/init.rb
index 5bf49923d..aafad7613 100644
--- a/lib/plugins/gravatar/init.rb
+++ b/lib/plugins/gravatar/init.rb
@@ -1,4 +1,4 @@
# frozen_string_literal: true
-require 'gravatar'
+require File.dirname(__FILE__) + '/lib/gravatar'
ActionView::Base.send :include, GravatarHelper::PublicMethods
diff --git a/lib/plugins/open_id_authentication/init.rb b/lib/plugins/open_id_authentication/init.rb
index ec96a5a7f..f3314807f 100644
--- a/lib/plugins/open_id_authentication/init.rb
+++ b/lib/plugins/open_id_authentication/init.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: false
-require 'open_id_authentication'
+require File.dirname(__FILE__) + '/lib/open_id_authentication'
config.middleware.use OpenIdAuthentication