mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 18:36:23 +00:00
13 lines
354 B
Ruby
13 lines
354 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 |actor_state: 'paused'|
|
|
raw.where(aasm_state: actor_state)
|
|
end
|
|
end
|