mirror of
https://github.com/dolphin-emu/redmine_webhook.git
synced 2026-01-31 01:15:19 +01:00
Zeitwerk-style plugin loading
This commit is contained in:
2
init.rb
2
init.rb
@@ -1,4 +1,4 @@
|
||||
require 'redmine_webhook'
|
||||
require_dependency File.dirname(__FILE__) + '/lib/redmine_webhook'
|
||||
|
||||
Redmine::Plugin.register :redmine_webhook do
|
||||
name 'Redmine Webhook plugin'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
require 'redmine_webhook/projects_helper_patch'
|
||||
require 'redmine_webhook/issue_wrapper'
|
||||
require 'redmine_webhook/webhook_listener'
|
||||
require File.dirname(__FILE__) + '/redmine_webhook/projects_helper_patch'
|
||||
require File.dirname(__FILE__) + '/redmine_webhook/issue_wrapper'
|
||||
require File.dirname(__FILE__) + '/redmine_webhook/webhook_listener'
|
||||
|
||||
module RedmineWebhook
|
||||
end
|
||||
|
||||
@@ -15,7 +15,7 @@ module RedmineWebhook
|
||||
:mail => @author.mail,
|
||||
:firstname => @author.firstname,
|
||||
:lastname => @author.lastname,
|
||||
:identity_url => @author.identity_url,
|
||||
:identity_url => @author.try(:identity_url),
|
||||
:icon_url => icon_url
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user