开发者

Resque hates kaminari dsl method paginates_per

开发者 https://www.devze.com 2023-03-30 14:34 出处:网络
So I\'m converting my Admin mailers to use Resque and execute in the background. When I ran: rake resque:work QUEUE=\'*\' --trace

So I'm converting my Admin mailers to use Resque and execute in the background.

When I ran:

rake resque:work QUEUE='*' --trace

I get this:

$ rake resque:work QUEUE='*' --trace (in /my/directory)
** Invoke resque:work (first_time)
** Invoke resque:preload (first_time)
** Execute resque:preload rake abo开发者_StackOverflowrted! undefined method `paginates_per' for #<Class:0x000000045ba1b8>

which traces back to my Micropost model that default to 10 micropost per page using kaminari's dsl method paginates_per:

class Micropost < ActiveRecord::Base
.
.
.
  paginates_per 10

How do I get rake to stop puking without moving the DSL method?

0

精彩评论

暂无评论...
验证码 换一张
取 消