Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 276 Bytes
require 'active_job'
module RailsEventStore
class ActiveJobScheduler
def call(klass, serialized_event)
klass.perform_later(serialized_event.to_h)
end
def verify(subscriber)
Class === subscriber && !!(subscriber < ActiveJob::Base)
end
end
end