app/controllers/browse_everything_controller.rb
def show
    render partial: 'files', layout: !request.xhr?
  rescue StandardError => error
    reset_provider_session!

    # Should an error be raised, log the error and redirect the use to reauthenticate
    logger.warn "Failed to retrieve the hosted files: #{error}"
    render partial: 'auth', layout: !request.xhr?
  end
# Either render the link to authorization or render the files
# provider#show method is invoked here
Either render the link to authorization or render the files
provider#show method is invoked here
Either render the link to authorization or render the files provider#show method is invoked here
def show
    render partial: 'files', layout: !request.xhr?
  rescue StandardError => error
    reset_provider_session!
    logger.warn "Failed to retrieve the hosted files: #{error}"
    render partial: 'auth', layout: !request.xhr?
  end
def show render partial : 'files' , layout : ! request . xhr? rescue StandardError => error reset_provider_session! logger . warn "Failed to retrieve the hosted files: #{error}" render partial : 'auth' , layout : ! request . xhr? end
Either render the link to authorization or render the files
provider#show method is invoked here
Either render the link to authorization or render the files provider#show method is invoked here
# Should an error be raised, log the error and redirect the use to reauthenticate