Skip to content

Commit 1f41ec2

Browse files
authored
Merge pull request #10 from MatthiasPetermann/master
Patch for Redmine 5.x / Rails 6.x compatibility
2 parents 98d60d7 + 45bca1e commit 1f41ec2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

init.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'redmine'
2-
2+
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib"
33
require 'project_tree/patches/projects_helper_patch'
44
require 'project_tree/patches/projects_controller_patch'
55

@@ -8,7 +8,7 @@
88
name 'Project Tree plugin'
99
author 'Uwe Heber, Matthias Petermann'
1010
description 'This is a Redmine plugin which will turn the projects page into a tree view'
11-
version '1.0.3'
11+
version '2.0.0'
1212
url 'https://github.com/UweHeber/redmine-project-tree-plugin'
1313
author_url 'http://heber.it/about, http://petermann-it.de'
1414
end

lib/project_tree/patches/projects_controller_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ def children
4545
end
4646
end
4747

48-
ProjectsController.send(:include, ProjectTree::Patches::ProjectsControllerPatch)
48+
ProjectsController.send(:include, ::ProjectTree::Patches::ProjectsControllerPatch)

lib/project_tree/patches/projects_helper_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ def find_toplevel_projects
5555
end
5656
end
5757

58-
ProjectsHelper.send(:include, ProjectTree::Patches::ProjectsHelperPatch)
58+
ProjectsHelper.send(:include, ::ProjectTree::Patches::ProjectsHelperPatch)

0 commit comments

Comments
 (0)