Skip to content

Commit

Permalink
Make plugin Redmine 5 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Mathes committed Mar 25, 2024
1 parent 652a429 commit 775f575
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gem 'openid_connect', '~> 2.2'
gem 'redis', '~> 4.2'
gem 'redis', '~> 5.0'
gem 'hiredis', '~> 0.6.3'
16 changes: 10 additions & 6 deletions lib/redmine_oidc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Rails.configuration.to_prepare do
require_dependency 'redmine_oidc/account_controller_patch'
require_dependency 'redmine_oidc/application_controller_patch'
require_dependency 'redmine_oidc/avatars_helper_patch'
require_dependency 'redmine_oidc/hooks'
end
REDMINE_OIDC_REQUIRED_FILES = [
'redmine_oidc/account_controller_patch',
'redmine_oidc/application_controller_patch',
'redmine_oidc/avatars_helper_patch',
'redmine_oidc/hooks'
]

base_url = File.dirname(__FILE__)
REDMINE_OIDC_REQUIRED_FILES.each { |file| require(base_url + '/' + file) }


module RedmineOidc
def self.settings
Expand Down

0 comments on commit 775f575

Please sign in to comment.