lib/ruby-app/tasks.rake in ruby-app-0.1.3 vs lib/ruby-app/tasks.rake in ruby-app-0.1.4

- old
+ new

@@ -1,12 +1,19 @@ task :environment do - require File.join(App.root, %w{config environment}) + require File.join(App.root, %w{ config environment }) end # load gem rakes Dir["#{File.dirname(__FILE__)}/tasks/*.{rb,rake}"].each do |f| load f +end + +# load other gems rakes +if defined?(App) && !App.rake_paths.empty? + App.rake_paths.each do |path| + load File.expand_path(path) + end end # load app rakes if defined?(App) Dir["#{App.root}/lib/rake_tasks/*.{rb,rake}"].each do |f|