Updated store_location_for for redirecting after sign in

• Updated:
- store_location_for for redirecting after sign in
This commit is contained in:
mgabdev
2020-06-16 09:31:55 -04:00
parent e849c42c7b
commit 9d61659604
5 changed files with 14 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ class ApplicationController < ActionController::Base
end
def store_current_location
store_location_for(:user, request.url) unless request.format == :json
store_location_for(:user, request.url) if request.format == :html
end
def require_admin!