Skip to content

Commit

Permalink
Add missing Rails.configuration.to_prepare
Browse files Browse the repository at this point in the history
Co-authored-by: Jigarius <[email protected]>
  • Loading branch information
Burak Ikiler and jigarius committed May 21, 2024
1 parent 7afda9b commit 16e40a8
Showing 1 changed file with 21 additions and 17 deletions.
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 16e40a8

Please sign in to comment.