Skip to content

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
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