5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 15:41:42 +00:00

Peticiones completas

This commit is contained in:
f 2021-09-03 15:55:30 -03:00
parent 016da28529
commit 4e4b5888a3

View file

@ -1,4 +1,9 @@
# frozen_string_literal: true
class AccessLog < ApplicationRecord
# Las peticiones completas son las que terminaron bien y se
# respondieron con 200 OK o 304 Not Modified
#
# @see {https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
scope :completed_requests, -> { where(request_method: 'GET', request_completion: 'OK', status: [200, 304]) }
end