Created
October 5, 2009 19:00
-
-
Save masterkain/202347 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Rakefile b/Rakefile | |
index 3bb0e85..d3133a3 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -8,3 +8,9 @@ require 'rake/testtask' | |
require 'rake/rdoctask' | |
require 'tasks/rails' | |
+ | |
+# temporary work around for | |
+# http://rails.lighthouseapp.com/projects/8994/tickets/59-when-loading-a-plugin-via-rubygems-rake-tasks-aren-t-included | |
+File.read("#{RAILS_ROOT}/config/environment.rb").scan(/config.gem \"(.+)\".*:version => \"([\d\.]+)\"/) do |m| | |
+ Dir["#{Gem.path}/gems/#{m.first}-#{m.last}/tasks/**/*.rake"].sort.each { |ext| load ext } | |
+end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment