Class: Pasaporte::Controllers::Signout

Inherits:
Object
  • Object
show all
Defined in:
lib/pasaporte.rb

Overview

Logout the user, remove associations and session

Instance Method Summary collapse

Instance Method Details

#get_with_nickObject



558
559
560
561
562
563
# File 'lib/pasaporte.rb', line 558

def get_with_nick
  (redirect R(Signon, @nickname); return) unless is_logged_in?
  reset_session!
  @state.msg = "Thanks for using the service and goodbye"
  redirect R(Signon, @nickname)
end