#46 ✓resolved
koulikoff (at gmail)

rake task plugin does not exist

Reported by koulikoff (at gmail) | June 13th, 2009 @ 09:31 AM

here is the patch

--- a/vendor/plugins/engines/tasks/engines.rake
+++ b/vendor/plugins/engines/tasks/engines.rake
@@ -2,6 +2,9 @@
 # handy for modifying existing Rails rake tasks.
 # Credit for the original snippet of code goes to Jeremy Kemper
 # http://pastie.caboo.se/9620
+
+require File.join(RAILS_ROOT, 'vendor', 'plugins', 'engines', 'lib', 'engines')
+
 unless Rake::TaskManager.methods.include?('redefine_task')
   module Rake
     module TaskManager
@@ -118,7 +121,7 @@ namespace :db do
     end

     desc 'Migrate a specified plugin.'
-    task({:plugin => :environment}, :name, :version) do |task, args|
+    task({:plugin => :environment}) do |task, args|
       name = args[:name] || ENV['NAME']
       if plugin = Engines.plugins[name]
         version = args[:version] || ENV['VERSION']

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The rails engines plugin itself

Shared Ticket Bins

People watching this ticket

Referenced by

Pages