Skip to content

Commit

Permalink
enable to use midldleware to GoodJob
Browse files Browse the repository at this point in the history
  • Loading branch information
smellman committed Jul 10, 2024
1 parent 851adac commit 4c9b062
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
author_url 'https://github.com/georepublic'
url 'https://github.com/gtt-project/redmine_good_job'
description 'Add support for Good Job background job processing to Redmine.'
version '1.0.0'
version '1.0.1'

requires_redmine version_or_higher: '5.1.0'

settings default: {}, partial: 'settings/redmine_good_job_settings'
end

# Add the middleware during the initialization phase
Rails.application.config.to_prepare do
Rails.application.config.middleware.use RedmineGoodJobAuth
end
GoodJob::Engine.middleware.use RedmineGoodJobAuth

0 comments on commit 4c9b062

Please sign in to comment.