Skip to content

Commit

Permalink
Merge pull request #1395 from bgeuken/wrong_argument_error
Browse files Browse the repository at this point in the history
[webui][api] Fix ArgumentError EventBase model
  • Loading branch information
adrianschroeter committed Nov 23, 2015
2 parents a135e89 + 81f297a commit 503bcd0
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 503bcd0

Please sign in to comment.