public
Created

Rake 0.9.0 and Rails 3 (problem + solution = love)

  • Download Gist
Rakefile
Ruby
1 2 3 4 5 6 7 8 9
require File.expand_path('../config/application', __FILE__)
require 'rake'
 
# add this freedom patch per https://github.com/jimweirich/rake/issues/33#issuecomment-1213705
class Rails::Application
include Rake::DSL if defined?(Rake::DSL)
end
 
GumboYaya::Application.load_tasks
ruh-roh!
1 2 3
gumboyaya (master)$ rake -T
rake aborted!
undefined method `task' for #<GumboYaya::Application:0x000001010ef5e0>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.