-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
forward skip to devise #97
Comments
@nean - I'm not sure I understand the problem. Can you post the code that you're using to include the devise token auth modules? |
In a test app with just devise_token_auth
rake routes
I want to skip So i suggest to forward skip to devise something like this devise_for resource.pluralize.underscore.to_sym,
:class_name => resource,
:module => :devise,
:path => "",
:controllers => controllers
:skip => opts[:skip] |
Oh I see, thanks. I'll push this fix tomorrow. |
I used the latest version The test passed because the user model in the test doesn't have My user model still has I want to remove some unnecessary routes defined by devise_token_auth like this one #100. so i skipped the controller registration and register them mannually like this in scope 'auth' do
as :user do
# Sessions
post 'sign_in', :to => 'devise_token_auth/sessions#create'
delete 'sign_out', :to => 'devise_token_auth/sessions#destroy'
end
end i used this SO question as reference |
Ok @nean, try |
works good, @lynndylanhurley ty for the gem |
At present we can skip controllers in devise_token_auth but devise registers its own controllers.
i suggest we also pass the
skip
todevise_for
here?The text was updated successfully, but these errors were encountered: