From b0b2f7d3e96a41ad7217552e58c6ca97e95b12c5 Mon Sep 17 00:00:00 2001 From: Ryunosuke Sato Date: Sat, 3 Dec 2016 02:26:35 +0900 Subject: [PATCH] Use `alias_method` instead of `alias_method_chain` It is deprecated since Rails 5. --- lib/multi_fetch_fragments.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/multi_fetch_fragments.rb b/lib/multi_fetch_fragments.rb index db36d04..f465b4b 100644 --- a/lib/multi_fetch_fragments.rb +++ b/lib/multi_fetch_fragments.rb @@ -2,7 +2,8 @@ module MultiFetchFragments extend ActiveSupport::Concern included do - alias_method_chain :render_collection, :multi_fetch_cache + alias_method :render_collection_without_multi_fetch_cache, :render_collection + alias_method :render_collection, :render_collection_with_multi_fetch_cache end private