From 3f0260667ece35a10e9d08d9bd8031680317b9fd Mon Sep 17 00:00:00 2001 From: Zack Olson Date: Mon, 20 Nov 2017 17:17:26 -0500 Subject: [PATCH] update alias_method_chain references --- lib/zuora/attributes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zuora/attributes.rb b/lib/zuora/attributes.rb index 976591a..606def0 100644 --- a/lib/zuora/attributes.rb +++ b/lib/zuora/attributes.rb @@ -51,7 +51,8 @@ def #{scope}_with_complex @#{scope} = #{scope}_without_complex end end - alias_method_chain :#{scope}, :complex + alias_method :#{scope}_without_complex, :#{scope} + alias_method :#{scope}, :#{scope}_with_complex EVAL end end