From: Jean-Philippe Lang Date: Thu, 14 Jul 2016 06:52:38 +0000 (+0000) Subject: Removes a call to alias_method_chain. X-Git-Tag: 3.4.0~810 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e58e676b7c15bb3f837f660f857d8e2a3e35f233;p=redmine.git Removes a call to alias_method_chain. git-svn-id: http://svn.redmine.org/redmine/trunk@15653 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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