forked from suer/redmine_webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.rb
More file actions
19 lines (18 loc) · 668 Bytes
/
init.rb
File metadata and controls
19 lines (18 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if Rails.try(:autoloaders).try(:zeitwerk_enabled?)
Rails.autoloaders.main.push_dir File.dirname(__FILE__) + '/lib/redmine_webhook'
RedmineWebhook::ProjectsHelperPatch
RedmineWebhook::WebhookListener
else
require "redmine_webhook"
end
Redmine::Plugin.register :redmine_webhook do
name 'Redmine Webhook plugin for LINEWORKS'
author 't.shiraki'
description 'Redmine webook plugin for LINEWORKS integration'
version '0.0.1'
url 'https://github.com/acorns-shiraki/redmine_webhook'
author_url ''
project_module :webhooks do
permission :manage_hook, {:webhook_settings => [:index, :show, :update, :create, :destroy]}, :require => :member
end
end