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