Skip to content

DONOTMERGE: Just comments#14

Open
aviflombaum wants to merge 1 commit intoflatiron-school:masterfrom
aviflombaum:comments-on-models-and-controllers
Open

DONOTMERGE: Just comments#14
aviflombaum wants to merge 1 commit intoflatiron-school:masterfrom
aviflombaum:comments-on-models-and-controllers

Conversation

@aviflombaum
Copy link
Copy Markdown

No description provided.

@user = User.find_for_google_oauth2(request.env["omniauth.auth"])
if @user
sign_in @user
if user = User.find_for_google_oauth2(request.env["omniauth.auth"])
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for the instance var as you redirect no matter what.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant