public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
Search Repo:
don't rely on Merb.root since some rake tasks might not even use merb_env
mattetti (author)
Thu May 15 10:47:48 -0700 2008
commit  205717dbff1ecfde35bf3b8f7c08ca05b3c3c84f
tree    7db9202b6fdf6cf18c581b4d0eaeae1da408dc31
parent  37652ca69f15397cb10e5f4ae3b07d6c5d3e58e3
...
21
22
23
24
 
 
 
25
26
27
...
21
22
23
 
24
25
26
27
28
29
0
@@ -21,7 +21,9 @@ Merb.load_dependencies(:environment => init_env)
0
 Merb::Plugins.rakefiles.each { |r| require r }
0
 
0
 # Load any app level custom rakefile extensions from lib/tasks
0
-Dir["#{Merb.root}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
0
+tasks_path = File.join(File.dirname(__FILE__), "lib", "tasks")
0
+rake_files = Dir["#{tasks_path}/*.rb"]
0
+rake_files.each{|rake_file| load rake_file }
0
 
0
 
0
 desc "start runner environment"

Comments

    No one has commented yet.