From e58e676b7c15bb3f837f660f857d8e2a3e35f233 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 14 Jul 2016 06:52:38 +0000 Subject: [PATCH] Removes a call to alias_method_chain. git-svn-id: http://svn.redmine.org/redmine/trunk@15653 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb index 050e442b4..f9da79c22 100644 --- a/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb +++ b/lib/plugins/acts_as_customizable/lib/acts_as_customizable.rb @@ -41,7 +41,6 @@ module Redmine module InstanceMethods def self.included(base) base.extend ClassMethods - base.send :alias_method_chain, :reload, :custom_fields end def available_custom_fields @@ -164,10 +163,10 @@ module Redmine @custom_field_values_changed = true end - def reload_with_custom_fields(*args) + def reload(*args) @custom_field_values = nil @custom_field_values_changed = false - reload_without_custom_fields(*args) + super end module ClassMethods -- 2.39.5