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

Where Does The Subclass Go? #116

Open
perlmunger opened this issue Apr 4, 2018 · 1 comment
Open

Where Does The Subclass Go? #116

perlmunger opened this issue Apr 4, 2018 · 1 comment

Comments

@perlmunger
Copy link

Dumb question, I'm sure, but how do you load the subclass? Where do you put it in the project tree? Does it matter? Do you have to explicitly require it then? And then whatever you named your strategy, can you load that into the devise initializer with:

config.omniauth :some_site, ENV['APP_ID'], ENV['SECRET']

Thanks

@vemv
Copy link

vemv commented Apr 30, 2018

You can create app/lib and add it to your autoload paths in application.rb. That's generally a good place to store misc pieces of code.

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

No branches or pull requests

2 participants