Skip to content

Commit

Permalink
remove sign out line, not working because of require_no_authentication
Browse files Browse the repository at this point in the history
it may be done in custom controller with prepend_before_action :sign_out, only: :edit
  • Loading branch information
scambra committed Jun 25, 2018
1 parent e93ced5 commit e17c37a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/devise/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def create

# GET /resource/invitation/accept?invitation_token=abcdef
def edit
sign_out send("current_#{resource_name}") if send("#{resource_name}_signed_in?")
set_minimum_password_length
resource.invitation_token = params[:invitation_token]
render :edit
Expand Down

0 comments on commit e17c37a

Please sign in to comment.