-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
25 lines (21 loc) · 827 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require 'redmine'
require 'chili_pdf'
require 'wicked_pdf' unless defined?(WickedPdf)
require 'nokogiri' unless defined?(Nokogiri)
require 'dispatcher'
Redmine::Plugin.register :chili_pdf do
name 'Chili PDF plugin'
author 'Tom Kersten'
description "Implements/Enhances PDF-export functionality using the Webkit rendering engine (via the 'wkhtmltopdf' executable)."
version ChiliPDF::VERSION
url 'https://github.com/tomkersten/chili_pdf'
author_url 'http://tomkersten.com/'
settings :partial => 'settings/chili_pdf_settings',
:default => ChiliPDF::Config.defaults
end
Dispatcher.to_prepare :chili_pdf do
require_dependency 'principal'
require_dependency 'user'
User.send(:include, UserPatch) unless User.included_modules.include? UserPatch
require_dependency 'wiki_format_hook_listener'
end