-
Notifications
You must be signed in to change notification settings - Fork 9
/
init.rb
20 lines (18 loc) · 601 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Redmine::Plugin.register :custom_field_sql do
name 'Redmine SQL Custom Field Label plugin'
author 'Alexey Smirnov'
description 'This is a plugin for Redmine which adds SQL type to Custom Fields'
version '2.8'
url 'https://github.com/apsmir/custom_field_sql'
end
require_dependency File.dirname(__FILE__) + '/lib/custom_sql_search_hook'
require_dependency File.dirname(__FILE__) + '/lib/custom_field_sql/custom_fields/formats/sql'
CustomField.safe_attributes(
'sql',
'form_params',
'search_by_click',
'db_config',
'strict_selection',
'strict_error_message',
'default_value'
)