I use Bundler, so in the end I put something like this in the block Motion::Project::App.setup do |app| :
app_files = app.files.reverse.pop app.files << Dir.glob(File.join(app.project_dir, 'lib/**/*.rb')) << app_files
There is definitely a better way to do this.
source share