lib/draper/compatibility/api_only.rb in draper-3.1.0 vs lib/draper/compatibility/api_only.rb in draper-4.0.0

- old
+ new

@@ -12,12 +12,12 @@ # temporary solution until we can find a way to not rely on the controller layer. module ApiOnly extend ActiveSupport::Concern included do - alias :previous_render_to_body :render_to_body + alias_method :previous_render_to_body, :render_to_body include ActionView::Rendering - alias :render_to_body :previous_render_to_body + alias_method :render_to_body, :previous_render_to_body end end end end