Skip to content

Commit bd1f2ca

Browse files
authored
Merge pull request #5 from UweHeber/bug/4-depricated-function
Solved usage of depricated method
2 parents da808e9 + 5dfd697 commit bd1f2ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.1'
11+
version '1.0.2'
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def self.included(base) # :nodoc:
88
base.send(:include, InstanceMethods)
99
base.class_eval do
1010
unloadable
11-
#the before_filter is who gives the authorization to execute the function
12-
before_filter :authorize, :except => [ :index, :children, :autocomplete, :list, :new, :create, :copy, :archive, :unarchive, :destroy ]
11+
#the before_action is who gives the authorization to execute the function
12+
before_action :authorize, :except => [ :index, :children, :autocomplete, :list, :new, :create, :copy, :archive, :unarchive, :destroy ]
1313
end
1414
end
1515

0 commit comments

Comments
 (0)