lib/ProMotion.rb in ProMotion-0.4.1 vs lib/ProMotion.rb in ProMotion-0.5.0
- old
+ new
@@ -3,7 +3,12 @@
end
require "ProMotion/version"
Motion::Project::App.setup do |app|
- app.files = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')) | app.files
+ # app_delegate = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/app_delegate.rb'))
+ # app.files = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')) | app_delegate | app.files
+
+ original_files = app.files
+ app.files = FileList[File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')].exclude(File.join(File.dirname(__FILE__), 'ProMotion/app_delegate.rb'))
+ app.files = app.files | Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/app_delegate.rb')) | original_files
end
\ No newline at end of file