Class: SessionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- SessionsController
- Defined in:
- app/controllers/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
2 3 4 5 6 7 |
# File 'app/controllers/sessions_controller.rb', line 2 def create auth = request.env["omniauth.auth"] account = ::Account.from_omniauth(auth) (account) redirect_to after_bookingsync_sign_in_path end |
#destroy ⇒ Object
9 10 11 12 |
# File 'app/controllers/sessions_controller.rb', line 9 def destroy redirect_to after_bookingsync_sign_out_path end |
#failure ⇒ Object
14 15 16 17 |
# File 'app/controllers/sessions_controller.rb', line 14 def failure allow_bookingsync_iframe @error_message = params[:message].try(:humanize) end |