# 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