Skip to content

Commit

Permalink
Change require call to respect new path
Browse files Browse the repository at this point in the history
  • Loading branch information
camlafit committed Sep 5, 2023
1 parent db4ed4b commit 1b972e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'redmine_recurring_tasks'
require 'redmine'
require_relative 'lib/redmine_recurring_tasks'

reloader = defined?(ActiveSupport::Reloader) ? ActiveSupport::Reloader : ActionDispatch::Reloader
reloader.to_prepare do
Expand Down Expand Up @@ -33,3 +34,5 @@
permission :manage_schedule, recurring_tasks: [:new, :edit, :destroy, :update], require: :loggedin
end
end

require File.dirname(__FILE__) + '/lib/redmine_recurring_tasks'

0 comments on commit 1b972e0

Please sign in to comment.