dockyard/easy_auth-oauth2

View on GitHub
lib/easy_auth/oauth2/controllers/sessions.rb

Summary

Maintainability
A
0 mins
Test Coverage
module EasyAuth::Oauth2::Controllers::Sessions

  private

  def after_successful_sign_in_with_oauth2
    send("after_successful_sign_in_with_oauth2_for_#{params[:provider]}")
  end

  def after_successful_sign_in_url_with_oauth2
    send("after_successful_sign_in_url_with_oauth2_for_#{params[:provider]}")
  end

  def after_failed_sign_in_with_oauth2
    send("after_failed_sign_in_with_oauth2_for_#{params[:provider]}")
  end
end