before_action :output_control
def output_control
Visit.create(user_id: session[:user_id], browser_client: request.env['HTTP_USER_AGENT'], ip_client: request.env['REMOTE_ADDR'], date_entrance: DateTime.now, date_output: DateTime.now)
end