require rake explicitly

This commit is contained in:
Dmytrii Nagirniak 2011-09-02 18:10:02 +10:00
parent 733f8642f1
commit c69f31008f

View File

@ -12,6 +12,7 @@ module Guard
def boot_rails def boot_rails
return if @@rails_booted return if @@rails_booted
puts "------------BOOTING RAILS" puts "------------BOOTING RAILS"
require 'rake'
require "#{Dir.pwd}/config/environment.rb" require "#{Dir.pwd}/config/environment.rb"
app = ::Rails.application app = ::Rails.application
puts "--- CACHE=#{app.assets.cache}" puts "--- CACHE=#{app.assets.cache}"