Failed to load job: `@ 'is not resolved as instance variable name

I keep getting an error when using lazy work.

Job failed to load: `@' is not allowed as an instance variable name.

The challenge is here:

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

And recording fixation

def record_fixing(records)
  records.search_fullcontact
end
+4
source share
1 answer

The cause of this problem here is the parameters that are passed to the record_fixingie method

   ActiveRelation Object(report.records.where(found: nil, pending: nil))

, - , , last_error, , id record_fixing, , .

+1

Source: https://habr.com/ru/post/1533255/


All Articles