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:
parent
4439ed8e84
commit
1ab605f076
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue