From 96fbb8ae6664aca8fbfc1ecd045380c1f2cbe537 Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Thu, 20 Feb 2014 13:45:38 +0100 Subject: [PATCH] undefined method CustomFieldsHelper' --- lib/redmine_dmsf/patches.rb | 7 ++++--- ...ields_helper.rb => custom_fields_helper_patch.rb} | 12 ++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) rename lib/redmine_dmsf/patches/{custom_fields_helper.rb => custom_fields_helper_patch.rb} (81%) diff --git a/lib/redmine_dmsf/patches.rb b/lib/redmine_dmsf/patches.rb index 20477fda..db91a040 100644 --- a/lib/redmine_dmsf/patches.rb +++ b/lib/redmine_dmsf/patches.rb @@ -1,7 +1,8 @@ # Redmine plugin for Document Management System "Features" # -# Copyright (C) 2011 Vít Jonáš -# Copyright (C) 2012 Daniel Munn +# Copyright (C) 2011 Vít Jonáš +# Copyright (C) 2012 Daniel Munn +# Copyright (C) 2011-14 Karel Picman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -17,7 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -require 'redmine_dmsf/patches/custom_fields_helper' +require 'redmine_dmsf/patches/custom_fields_helper_patch' require 'redmine_dmsf/patches/acts_as_customizable' require 'redmine_dmsf/patches/project_patch' require 'redmine_dmsf/patches/project_tabs_extended' \ No newline at end of file diff --git a/lib/redmine_dmsf/patches/custom_fields_helper.rb b/lib/redmine_dmsf/patches/custom_fields_helper_patch.rb similarity index 81% rename from lib/redmine_dmsf/patches/custom_fields_helper.rb rename to lib/redmine_dmsf/patches/custom_fields_helper_patch.rb index 78b47608..e563bbda 100644 --- a/lib/redmine_dmsf/patches/custom_fields_helper.rb +++ b/lib/redmine_dmsf/patches/custom_fields_helper_patch.rb @@ -1,8 +1,8 @@ # Redmine plugin for Document Management System "Features" # -# Copyright (C) 2011 Vít Jonáš -# Copyright (C) 2012 Daniel Munn -# Copyright (C) 2013 Karel Pičman +# Copyright (C) 2011 Vít Jonáš +# Copyright (C) 2012 Daniel Munn +# Copyright (C) 2011-14 Karel Picman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -20,7 +20,7 @@ module RedmineDmsf module Patches - module CustomFieldsHelper + module CustomFieldsHelperPatch def self.included(base) base.class_eval do alias_method_chain :custom_fields_tabs, :customer_tab @@ -40,7 +40,7 @@ end # Apply patch Rails.configuration.to_prepare do - unless CustomFieldsHelper.included_modules.include?(CustomFieldsHelper) - CustomFieldsHelper.send(:include, RedmineDmsf::Patches::CustomFieldsHelper) + unless CustomFieldsHelper.included_modules.include?(RedmineDmsf::Patches::CustomFieldsHelperPatch) + CustomFieldsHelper.send(:include, RedmineDmsf::Patches::CustomFieldsHelperPatch) end end