1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

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

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