Class: Gitkeeper::SessionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Gitkeeper::SessionsController
- Defined in:
- app/controllers/gitkeeper/sessions_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
binding.pry.
- #destroy ⇒ Object
Instance Method Details
#create ⇒ Object
binding.pry
15 16 17 18 |
# File 'app/controllers/gitkeeper/sessions_controller.rb', line 15 def create user_find_or_create_from_auth_hash(request.env['omniauth.auth']) redirect_to '/' end |
#destroy ⇒ Object
20 21 22 23 |
# File 'app/controllers/gitkeeper/sessions_controller.rb', line 20 def destroy session[:user_id] = nil redirect_to '/' end |