drapergem / draper

Decorators/View-Models for Rails Applications
MIT License
5.22k stars 527 forks source link

fix alias method #877

Closed 4geru closed 4 years ago

4geru commented 4 years ago

Description

this is missing to change in past pull request. https://github.com/drapergem/draper/pull/852

other changes

alias_method :decorate, :new => alias :decorate :new

missing changes

alias :previous_render_to_body :render_to_body => alias_method :previous_render_to_body, :render_to_body

reference: https://github.com/drapergem/draper/pull/852/files#diff-1ca405441e9eec709668800446ec14c2R17

To-Dos