lib/insque.rb in insque-0.4.2 vs lib/insque.rb in insque-0.4.3

- old
+ new

@@ -102,10 +102,10 @@ STDOUT.flush if @debug end def self.create_send_later_handler define_singleton_method("#{@sender}_send_later") do |msg| - Kernel.const_get(msg['params']['class']).find(msg['params']['id']).send(msg['params']['method'], *msg['params']['args']) + Kernel.const_get(msg['params']['class']).unscoped.find(msg['params']['id']).send(msg['params']['method'], *msg['params']['args']) end end end if defined?(ActiveRecord::Base)