Skip to content

Fix #1386 by removing dependency of Devise for logout_path and logout_method. #2062

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Sep 7, 2014

Conversation

jvortmann
Copy link
Contributor

This way the main app can define a logout path on its routes and it will just work.

Also, logout_method is now an application helper and have a fallback to a
default value of :delete. It will just work (showing a logout link and all)
if you just add a route like the following:

delete 'sign_out', :to => 'sessions#destroy', as: 'logout'

sferik added a commit that referenced this pull request Sep 7, 2014
Fix #1386 by removing dependency of Devise for logout_path and logout_method.
@sferik sferik merged commit 5b03a6e into railsadminteam:master Sep 7, 2014
@sferik
Copy link
Collaborator

sferik commented Sep 7, 2014

Nice. Thanks!

@jvortmann jvortmann deleted the fix_logout_path_and_method branch September 8, 2014 18:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants