From 61777425d33774ac7b8485fda8cf74f5c71be030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Wed, 21 Jan 2015 16:38:27 +0100 Subject: [PATCH] uninitialized constant RedmineDmsf::Patches::ProjectPatch::DmsfFolder (NameError) #250 --- lib/redmine_dmsf/patches/project_patch.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/redmine_dmsf/patches/project_patch.rb b/lib/redmine_dmsf/patches/project_patch.rb index 0f3cdae0..ef7ee681 100644 --- a/lib/redmine_dmsf/patches/project_patch.rb +++ b/lib/redmine_dmsf/patches/project_patch.rb @@ -1,8 +1,10 @@ +# encoding: utf-8 +# # Redmine plugin for Document Management System "Features" # # Copyright (C) 2011 Vít Jonáš # Copyright (C) 2012 Daniel Munn -# Copyright (C) 2011-14 Karel Pičman +# Copyright (C) 2011-15 Karel Pičman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -36,10 +38,10 @@ module RedmineDmsf :conditions => {:dmsf_folder_id => nil}, :dependent => :destroy has_many :dmsf_workflows, :dependent => :destroy has_many :folder_links, :class_name => 'DmsfLink', :foreign_key => 'project_id', - :conditions => { :dmsf_folder_id => nil, :target_type => DmsfFolder.model_name }, + :conditions => { :dmsf_folder_id => nil, :target_type => 'DmsfFolder' }, :dependent => :destroy has_many :file_links, :class_name => 'DmsfLink', :foreign_key => 'project_id', - :conditions => { :dmsf_folder_id => nil, :target_type => DmsfFile.model_name }, + :conditions => { :dmsf_folder_id => nil, :target_type => 'DmsfFile' }, :dependent => :destroy end end