emory-libraries/dlp-selfdeposit

View on GitHub
app/controllers/omniauth_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
class OmniauthController < Devise::SessionsController
  def new
    if Rails.env.production?
      redirect_to user_saml_omniauth_authorize_path
    else
      super
    end
  end
end