forked from jigarius/toggl2redmine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.rb
More file actions
27 lines (22 loc) · 804 Bytes
/
init.rb
File metadata and controls
27 lines (22 loc) · 804 Bytes
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
27
# frozen_string_literal: true
require 'redmine'
# Tell Zeitwerk to ignore this plugin's lib directory
plugin_lib = File.join(File.dirname(__FILE__), 'lib')
Rails.autoloaders.each { |loader| loader.ignore(plugin_lib) }
# Require plugin files
require File.join(plugin_lib, 'toggl_2_redmine')
require File.join(plugin_lib, 'toggl_2_redmine/patches/time_entry_patch')
Redmine::Plugin.register :toggl2redmine do
# Package info.
name 'Toggl 2 Redmine'
author 'Jigarius'
description 'Imports time entries from Toggl into Redmine.'
version Toggl2Redmine::VERSION
url 'https://github.com/jigarius/toggl2redmine'
author_url 'https://jigarius.com/'
# Menu items.
menu :application_menu,
:toggl2redmine,
{ controller: 't2r_import', action: 'index' },
caption: 'Toggl'
end