Skip to content

Commit

Permalink
Extract to sign out url method for cleaner injection
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Oct 27, 2013
1 parent 39f0251 commit ada77e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/easy_auth/controllers/sessions.rb
Expand Up @@ -50,7 +50,11 @@ def after_failed_sign_in_default
end

def after_sign_out
redirect_to main_app.root_url, :notice => I18n.t('easy_auth.sessions.delete.notice')
redirect_to after_sign_out_url, :notice => I18n.t('easy_auth.sessions.delete.notice')
end

def after_sign_out_url
main_app.root_url
end

def no_authentication
Expand Down

0 comments on commit ada77e6

Please sign in to comment.