ruby on rails - Job failed to load: `@' is not allowed as an instance variable name -


i keep getting error while using delayed job.

job failed load: `@' not allowed instance variable name. 

calling in here:

report = report.find(params[:id]) report.delay.record_fixing( report.records.where(found: nil, pending: nil) ) redirect_to reports_path 

and record fixing is

def record_fixing(records)   records.search_fullcontact end 

the cause of issue here parameters being passed method record_fixing i.e.

   activerelation object(report.records.where(found: nil, pending: nil)) 

which gets serialized along method name, delayed job reason, , fails so, hence raises error,and adds table column last_error, fix such kind of issue recommend that, should pass object id instead of whole object, , fetch object in method record_fixing, idea provide simpler arguments serialization.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -