lib/ProMotion.rb in ProMotion-0.0.2 vs lib/ProMotion.rb in ProMotion-0.1.0

- old
+ new

@@ -3,9 +3,15 @@ end require "ProMotion/version" Motion::Project::App.setup do |app| - Dir.glob(File.join(File.dirname(__FILE__), "ProMotion/*.rb")).each do |file| - app.files.unshift(file) - end + + # Dir.glob(File.join(File.dirname(__FILE__), "ProMotion/**/*.rb")).each do |file| + # app.files.unshift(file) + # end + app.files = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')) | app.files + app.files = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/helpers/**/*.rb')) | app.files + app.files = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/modules/**/*.rb')) | app.files + app.files = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/ext/**/*.rb')) | app.files + end \ No newline at end of file