# File lib/wicked_pdf/pdf_helper.rb, line 50
    def render_to_string_with_wicked_pdf(options = nil, *args, &block)
      if options.is_a?(Hash) && options.key?(:pdf)
        options[:basic_auth] = set_basic_auth(options)
        options.delete :pdf
        make_pdf((WickedPdf.config || {}).merge(options))
      elsif respond_to?(:render_to_string_without_wicked_pdf)
        # support alias_method_chain (module included)
        render_to_string_without_wicked_pdf(options, *args, &block)
      else
        # support inheritance (module prepended)
        method(:render_to_string).super_method.call(options, *args, &block)
      end
    end