Skip to content

Commit

Permalink
Fix "undefined method 'delete_all' when updating event" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlinha3k35pbc committed Jun 18, 2015
1 parent 5b07b6f commit f1b6059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ def delete_job_after_update
jobs = scheduled_jobs.select do |job|
job.klass == "AnnounceWorker" && job.args[0] == id
end
jobs.delete_all
jobs.each(&:delete)
end
end

0 comments on commit f1b6059

Please sign in to comment.