active record 2.3.8. I upgraded to
active record 3.2.1 and moved some gems into a gemfile. Now what
happens is rec below is an active record instance, when I enter the
thread it appears to become nil. The method repopulate() is not longer
defined. Why would that happen ?
th = Thread.new(&block)
@pool[slot] = th
p rec.respond_to?(:repopulate) # this is fine
@tpool.new_thread(slot) do # see method definition above
Thread.current[:rset_fact] = model
puts 'in thread'
p rec.respond_to?(:repopulate) # no longer defined
rec.repopulate # error rec is nil
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.