From 1ab605f076669da46a2c1ecade33e0adbe3c1274 Mon Sep 17 00:00:00 2001 From: 4geru koichi uchinishi Date: Thu, 27 Feb 2020 06:01:53 +0900 Subject: [PATCH] fix alias method (#877) --- lib/draper/compatibility/api_only.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/draper/compatibility/api_only.rb b/lib/draper/compatibility/api_only.rb index df989ba..44fb041 100644 --- a/lib/draper/compatibility/api_only.rb +++ b/lib/draper/compatibility/api_only.rb @@ -14,9 +14,9 @@ module Draper extend ActiveSupport::Concern included do - alias_method :previous_render_to_body, :render_to_body + alias :previous_render_to_body :render_to_body include ActionView::Rendering - alias_method :render_to_body, :previous_render_to_body + alias :render_to_body :previous_render_to_body end end end