Vinicius Ferriani
Vinicius Ferriani
Hi guys, I was facing the same issue and solved it. When the user is not allowed to `:index` and you try something like `Model.accessible_by(current_ability).all` it will add the `WHERE...
If using rails 4.2 look at https://github.com/rails/rails/issues/17657#issuecomment-71385191
FYI I did this on `lib/backgrounder/support/backends.rb` ``` ::Delayed::Job.enqueue worker.new(*args), :queue => queue_options[:queue], :priority => queue_options[:priority] || 0 ``` I don't know how to write the tests for this, so anyone...