We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f913433 commit fce0ae6Copy full SHA for fce0ae6
app/controllers/application_controller.rb
@@ -14,6 +14,11 @@ class ApplicationController < ActionController::Base
14
15
rescue_from ActiveRecord::RecordNotFound, with: :not_found!
16
17
+ rescue_from ActionController::InvalidAuthenticityToken do
18
+ flash[:error] = 'Your session expired. This could be due to leaving a page open for a long time, or having multiple tabs open. Try resubmitting.'
19
+ redirect_back fallback_location: root_path
20
+ end
21
+
22
def current_organization
23
return @current_organization if @current_organization
24
return nil unless current_role
0 commit comments