mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 19:16:23 +00:00
14 lines
342 B
Ruby
14 lines
342 B
Ruby
|
# 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
|