forked from peclik/clipboard_image_paste
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
26 lines (22 loc) · 768 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
26
#*******************************************************************************
# clipboard_image_paste Redmine plugin.
#
# Authors:
# - Richard Pecl
#
# Terms of use:
# - GNU GENERAL PUBLIC LICENSE Version 2
#*******************************************************************************
require 'redmine'
# Hooks
require_dependency 'clipboard_image_paste/hooks'
# Patches
require_dependency 'clipboard_image_paste/attachment_patch'
Redmine::Plugin.register :clipboard_image_paste do
name 'Clipboard image paste'
author 'Richard Pecl'
description "Paste cropped image from clipboard as attachment"
version '1.0'
configfile = File.join(File.dirname(__FILE__), 'config', 'settings.yml')
$clipboard_image_paste_config = YAML::load_file(configfile)
end