Is there a way to add a non persistent record to delayed job? I recently updated my Rails version, but now I can't add a non persistent record to delayed job.
This is my class:
class InfoPackDownload include ActiveAttr::Model include ::NewRelic::Agent::MethodTracer attribute :course_id attribute :first_name attribute :last_name attribute :email attribute :telephone attribute :receive_newsletter, type: Boolean attribute :filename attribute :course_code attribute :programme_instance_code attribute :presentation attribute :title validates_presence_of :first_name, :last_name validates :email, presence: true, email: true def send_interaction body_params = create_request_body request = build_request body_params send_request request end end
I am trying to add the following method to delayed job:
But when I call this method, an error is raised for adding a non persistent record to delayed job.
Can anyone offer some advice on this problem?