lib/emittance/resque/dispatcher.rb in emittance-resque-0.1.0 vs lib/emittance/resque/dispatcher.rb in emittance-resque-0.1.1

- old
+ new

@@ -44,10 +44,10 @@ event_klass = find_event_klass(identifier) klass_name = method_call_job_klass_name(event_klass, object, method_name) klass = method_call_job_klass(object, method_name) set_namespaced_constant_by_name("#{Jobs.name}::#{klass_name}", klass) unless Jobs.const_defined?(klass_name) - registrations_for(event_klass) << klass + registrations_for(identifier) << klass end def enqueue_job(job, event) ::Resque.enqueue job, event end