Skip to content

Commit

Permalink
Add missing Rails.configuration.to_prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
jigarius committed May 21, 2024
1 parent 985c380 commit fcb5775
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 fcb5775

Please sign in to comment.