mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 17:46:21 +00:00
Peticiones completas
This commit is contained in:
parent
016da28529
commit
4e4b5888a3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue