I upgraded as said above and now when my delayed job run it throws an
error when I try to access any of the attributes saved with the
object. I get this error:
ImportJob failed with NoMethodError: undefined method `peeps_count'
for #<YAML::Object:0x222dd80>. If I switch back to using the old
thinking sphinx plugin it works again. Has something changed about the
way objects are serialized into the delayed_jobs table?
Right now my delayed job class starts like this:
class ImportJob
attr_accessor :current_user
def initialize(current_user)
self.current_user = current_user
end
It's the current_user object that I need to retrieve attributes from
during delayed processing, and was able to until now.
When I look in the db, in the handler column I can see the serialized
object, as before, and the attributes in there that I need, but I get
that error above.
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en.