-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.rb
20 lines (17 loc) · 797 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'redmine_ckeditor_email_images/ckeditor_email_images_logger'
require 'redmine_ckeditor_email_images/ckeditor_email_images'
Rails.configuration.to_prepare do
# plugin does its actions only if ckeditor plugin is present
if Redmine::Plugin.registered_plugins[:redmine_ckeditor].present?
ActionMailer::Base.register_interceptor(RedmineCkeditorEmailImages::CkeditorEmailImages)
end
end
Redmine::Plugin.register :redmine_ckeditor_email_images do
name 'Redmine Ckeditor Email Images plugin'
author 'Roberto Piccini'
description 'insert images in html notification'
version '2.0.2'
url 'https://github.com/piccio/ckeditor_email_images.git'
author_url 'https://github.com/piccio'
settings default: { 'enable_log' => false }, partial: 'settings/ckeditor_email_images'
end