According to the ActiveJobs guide, section 8, it says:
This works with any class that mixes in GlobalID::Identification, which by default has been mixed into Active Model classes.
Mongoid::Document
mixes ActiveModel::Model
, but I can't find GlobalID::Identification
in its included_modules.
Where is
GlobalID::Identification
defined?Can I effectively use any
Mongoid::Document
for my ActiveJobs?
include GlobalID::Identification
to the top of your model. – Prickle