Skip to content

Commit

Permalink
Merge pull request #5 from UweHeber/bug/4-depricated-function
Browse files Browse the repository at this point in the history
Solved usage of depricated method
  • Loading branch information
UweHeber committed Apr 8, 2019
2 parents da808e9 + 5dfd697 commit bd1f2ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name 'Project Tree plugin'
author 'Uwe Heber, Matthias Petermann'
description 'This is a Redmine plugin which will turn the projects page into a tree view'
version '1.0.1'
version '1.0.2'
url 'https://github.com/UweHeber/redmine-project-tree-plugin'
author_url 'http://heber.it/about, http://petermann-it.de'
end
4 changes: 2 additions & 2 deletions lib/project_tree/patches/projects_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def self.included(base) # :nodoc:
base.send(:include, InstanceMethods)
base.class_eval do
unloadable
#the before_filter is who gives the authorization to execute the function
before_filter :authorize, :except => [ :index, :children, :autocomplete, :list, :new, :create, :copy, :archive, :unarchive, :destroy ]
#the before_action is who gives the authorization to execute the function
before_action :authorize, :except => [ :index, :children, :autocomplete, :list, :new, :create, :copy, :archive, :unarchive, :destroy ]
end
end

Expand Down

0 comments on commit bd1f2ca

Please sign in to comment.