5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:26:21 +00:00

feat: cambiar a orden descendiente por fecha de modificación

This commit is contained in:
f 2024-02-28 18:27:15 -03:00
parent 6d9a64f728
commit e07da7858e
No known key found for this signature in database

View file

@ -0,0 +1,13 @@
# frozen_string_literal: true
# Gestiona los filtros de ActorModeration
class ActorModerationProcessor < Rubanok::Processor
# En orden descendiente para encontrar le últime Actor
prepare do
raw.order(updated_at: :desc)
end
map :actor_state, activate_always: true do |state: 'paused'|
raw.where(aasm_state: state)
end
end