lib/swiss_db.rb in swiss_db-0.6.8 vs lib/swiss_db.rb in swiss_db-0.7.0
- old
+ new
@@ -12,17 +12,16 @@
# if found, it inserts just before those files, otherwise it will insert to
# the end of the list
insert_point = app.files.find_index { |file| file =~ /^(?:\.\/)?app\// } || 0
# change to "swiss_db" for just swiss_db
- Dir.glob(File.join(lib_dir_path, "**/*.rb")).reverse.each do |file|
+ Dir.glob(File.join(lib_dir_path, "**/*.rb")).each do |file|
app.files.insert(insert_point, file)
end
# load their schemas folder
app.files += Dir.glob("schemas/*.rb")
# puts "APP FILES: #{app.files.inspect}"
end
end
-