style check
This commit is contained in:
parent
e7b45e6833
commit
b0d7e490d6
1 changed files with 3 additions and 3 deletions
|
@ -3,12 +3,12 @@ class ApplicationController < ActionController::Base
|
|||
# For APIs, you may want to use :null_session instead.
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
before_filter :store_location
|
||||
before_action :store_location
|
||||
|
||||
def store_location
|
||||
unless params[:controller] == "devise/sessions"
|
||||
unless params[:controller] == 'devise/sessions'
|
||||
url = "/admin/dossier/#{params[:dossier_id]}"
|
||||
session[:user_return_to] = url
|
||||
session[:user_return_to] = url
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue