lib/rubaidh/authentication/controllers/sessions_controller_mixin.rb
# store the HTTP_REFERER if it exists and nil the redirect_back_uri so the user goes where intended
store the HTTP_REFERER if it exists and nil the redirect_back_uri so the user goes where intended
store the HTTP_REFERER if it exists and nil the redirect_back_uri so the user goes where intended
def store_location
             if request.env['HTTP_REFERER'].present?
               session[:return_uri] = request.env['HTTP_REFERER']
             end
           end
def store_location if request . env [ 'HTTP_REFERER' ] . present? session [ :return_uri ] = request . env [ 'HTTP_REFERER' ] end end
store the HTTP_REFERER if it exists and nil the redirect_back_uri so the user goes where intended
store the HTTP_REFERER if it exists and nil the redirect_back_uri so the user goes where intended