Moonshine Resque Plugin and Rails 4.1

14 views
Skip to first unread message

bparanj

unread,
Aug 11, 2014, 9:57:06 PM8/11/14
to railsmachin...@googlegroups.com
When the generator is run, the lib/tasks/resque_tasks.rake looks like this:

require 'resque/tasks'

The following line is missing for Rails 4.1. I had to manually add it to the generated rake task to get resque working.

```ruby
task 'resque:setup' => :environment
```
Maybe the generator can be changed for Rails 4.1?

Kevin Lawver

unread,
Aug 12, 2014, 9:27:23 AM8/12/14
to railsmachin...@googlegroups.com
You could submit a pull request that adds it.  8)


--
You received this message because you are subscribed to the Google Groups "Moonshine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to railsmachine-moon...@googlegroups.com.
To post to this group, send email to railsmachin...@googlegroups.com.
Visit this group at http://groups.google.com/group/railsmachine-moonshine.
For more options, visit https://groups.google.com/d/optout.

bparanj

unread,
Aug 14, 2014, 10:18:49 PM8/14/14
to railsmachin...@googlegroups.com

For now I have added the changes required to get it working in the README. Here is the pull request: https://github.com/railsmachine/moonshine_resque/pull/2/commits

bparanj

unread,
Aug 14, 2014, 10:25:02 PM8/14/14
to railsmachin...@googlegroups.com
I know that I have to add the following code for Rails 4 :

 rakefile("resque_tasks.rake") do
      "require 'resque/tasks'"
    end

but, how do I check if it is Rails 4?
Reply all
Reply to author
Forward
0 new messages