Commit 2f8b6e0a by Thanh Hung Pham

fix current page

parent a93fa166
class ApplicationController < ActionController::Base
before_action :store_current_location, unless: :devise_controller?
protect_from_forgery with: :exception
private
def store_current_location
store_location_for(:user, request.url)
end
def after_sign_out_path_for(resource)
request.referrer || root_path
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment