Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def current_user_url # store last url
- if (request.fullpath != "/users/sign_in?locale=*" &&
- request.fullpath != "/users/sign_up?locale=*" &&
- request.fullpath != "/users/password?locale=*" &&
- request.fullpath != "/users/sign_out?locale=*" &&
- request.fullpath != "/users?locale=*" &&
- !request.xhr?) # don't store ajax calls
- session[:previous_url] = request.fullpath
- end
- end
- def after_sign_in_path_for(resource)
- session[:previous_url] || session[:confirm_url]
- end
- if (request.fullpath[%r{A/users/sign_in?locale=.*z}] &&
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement