Class: Gitkeeper::AuthController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Gitkeeper::AuthController
- Defined in:
- app/controllers/gitkeeper/auth_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
binding.pry.
- #destroy ⇒ Object
- #index ⇒ Object
Instance Method Details
#create ⇒ Object
binding.pry
11 12 13 14 15 16 |
# File 'app/controllers/gitkeeper/auth_controller.rb', line 11 def create # raise request.env["omniauth.auth"].to_yaml # Rails.logger.info "\r\n" + "#{Time.now} " + "auth = #{auth}" + "\r\n" user_find_or_create_from_auth_hash(request.env['omniauth.auth']) redirect_to '/auth' end |
#destroy ⇒ Object
18 19 20 21 |
# File 'app/controllers/gitkeeper/auth_controller.rb', line 18 def destroy session[:user_id] = nil redirect_to '/auth' end |
#index ⇒ Object
7 8 |
# File 'app/controllers/gitkeeper/auth_controller.rb', line 7 def index end |