fix alias method (#877)

This commit is contained in:
4geru koichi uchinishi 2020-02-27 06:01:53 +09:00 committed by GitHub
parent 4439ed8e84
commit 1ab605f076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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