Revert "Do not pass AR objects to Sidekiq"
This reverts commit 32935be9b1.
This commit is contained in:
parent
e3265aa650
commit
477c9d2ef3
1 changed files with 0 additions and 5 deletions
|
|
@ -40,11 +40,6 @@ class Postzord::Dispatcher
|
||||||
if opts[:additional_subscribers].present?
|
if opts[:additional_subscribers].present?
|
||||||
opts[:additional_subscribers] = [*opts[:additional_subscribers]].map(&:id)
|
opts[:additional_subscribers] = [*opts[:additional_subscribers]].map(&:id)
|
||||||
end
|
end
|
||||||
|
|
||||||
if opts[:to].present?
|
|
||||||
opts[:to] = [opts[:to]].flatten(1).map {|e| e.respond_to?(:id) ? e.id : e }
|
|
||||||
end
|
|
||||||
|
|
||||||
Workers::DeferredDispatch.perform_async(user.id, object.class.to_s, object.id, opts)
|
Workers::DeferredDispatch.perform_async(user.id, object.class.to_s, object.id, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue