Skip to content

Commit

Permalink
[webui][api] Fix ArgumentError EventBase model
Browse files Browse the repository at this point in the history
Error message was:
  ArgumentError in Webui::PackageController#submit_request
    wrong number of arguments (1 for 0)
  • Loading branch information
bgeuken committed Nov 22, 2015
1 parent a135e89 commit 81f297a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/event/base.rb
Expand Up @@ -150,7 +150,7 @@ def perform_create_jobs
eclass = job.to_s.camelize.safe_constantize
raise "#{job.to_s.camelize} does not map to a constant" if eclass.nil?
djob = eclass.new(self)
raise "#{job.to_s.camelize} is not a CreateJob" unless djob.is_a? CreateJob
raise("#{job.to_s.camelize} is not a CreateJob") unless djob.is_a?(CreateJob)
opts = {}
opts = { queue: eclass.job_queue } if eclass.methods.include? :job_queue
Delayed::Job.enqueue djob, opts
Expand Down

0 comments on commit 81f297a

Please sign in to comment.