Skip to content

Commit

Permalink
Merge pull request #86 from jigarius/bugfix/redmine-5-compatibility
Browse files Browse the repository at this point in the history
Add Redmine 5 compatibility
  • Loading branch information
jigarius authored May 21, 2024
2 parents 18dd0f7 + 16e40a8 commit 3a68fad
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .docker/redmine/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ default:
# You can use `rake redmine:plugins:assets` to manually mirror assets
# to public/plugin_assets when you install/upgrade a Redmine plugin.
#
mirror_plugins_assets_on_startup: true
mirror_plugins_assets_on_startup: false

# Your secret key for verifying cookie session data integrity. If you
# change this key, all old sessions will become invalid! Make sure the
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3.1'
services:
redmine:
image: redmine:5.x-toggl2redmine
Expand Down
38 changes: 21 additions & 17 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# frozen_string_literal: true

require_relative 'lib/toggl_2_redmine'
Rails.configuration.to_prepare do
require_relative 'lib/toggl_2_redmine'

Redmine::Plugin.register :toggl2redmine do
# Package info.
name 'Toggl 2 Redmine'
author 'Jigar Mehta'
description 'Imports time entries from Toggl into Redmine.'
version Toggl2Redmine::VERSION
url 'https://github.com/jigarius/toggl2redmine'
author_url 'https://jigarius.com/'
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
# Menu items.
menu :application_menu,
:toggl2redmine,
{ controller: 't2r_import', action: 'index' },
caption: 'Toggl'
end

# Patches.
require 'patches/time_entry'
Rails.configuration.to_prepare do
# Patches.
require 'patches/time_entry_patch'
end
end

0 comments on commit 3a68fad

Please sign in to comment.