Deletion of a user #558

This commit is contained in:
Karel Picman 2016-09-06 09:12:23 +02:00
parent 162a24411b
commit 4d19f5b893

View File

@ -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