Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split up methods in omniauth_callbacks_ctrl for easier extensibility #1251

Conversation

nbrustein
Copy link
Contributor

In our project, we subclass OmniauthCallbacksController so that we can override some functionality. We were needing to override whole methods when there was just a small thing we wanted to change.

This PR does not change the behavior at all. It just splits some things out into smaller methods so that those smaller methods can be overridden without affecting other, unrelated functionality.

(As a drive-by I also removed an unused method that I noticed)

@booleanbetrayal
Copy link
Collaborator

Seems sane to me!

Copy link
Collaborator

@booleanbetrayal booleanbetrayal left a comment

Choose a reason for hiding this comment

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

Validated that this doesn't affect any existing behavior and makes the Omniauth controller a little bit easier to override.

@booleanbetrayal booleanbetrayal merged commit f0800ec into lynndylanhurley:master Jan 24, 2019
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.

2 participants