From 4d19f5b8934292e09710277b15715de2ddc8c949 Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Tue, 6 Sep 2016 09:12:23 +0200 Subject: [PATCH] Deletion of a user #558 --- lib/redmine_dmsf/patches/user_patch.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/redmine_dmsf/patches/user_patch.rb b/lib/redmine_dmsf/patches/user_patch.rb index 15b5bee4..bb661d9c 100644 --- a/lib/redmine_dmsf/patches/user_patch.rb +++ b/lib/redmine_dmsf/patches/user_patch.rb @@ -18,8 +18,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -require_dependency 'user' - module RedmineDmsf module Patches module UserPatch @@ -60,7 +58,7 @@ end # Apply patch Rails.configuration.to_prepare do - unless Project.included_modules.include?(RedmineDmsf::Patches::UserPatch) + unless User.included_modules.include?(RedmineDmsf::Patches::UserPatch) User.send(:include, RedmineDmsf::Patches::UserPatch) end end