This way, the app files can be changed across all Rails versions at once.
Just FYI, I found the matching files with fdupes, then replaced with this script:
def symlink(dest, source)
FileUtils.rm_rf(source)
FileUtils.ln_s(dest, source)
end
Dir.glob('rails_*').each do |path|
%w(mailers views).each do |subdir|
symlink("../../shared/all/app/#{subdir}", "#{path}/app/#{subdir}")
end
unless %w(rails_30 rails_40_no_pipeline).include?(path)
symlink("../../shared/pipeline/app/assets", "#{path}/app/assets")
end
end
Coverage decreased (-0.11%) when pulling bcdc7eb8473b1910824f0eb7cbc7c01214c5ac0c on afeld:symlinks into cf0b3dfd7919db1edacc1d301a009c2045ffbad5 on Mange:master.
Coverage remained the same when pulling bcdc7eb8473b1910824f0eb7cbc7c01214c5ac0c on afeld:symlinks into cf0b3dfd7919db1edacc1d301a009c2045ffbad5 on Mange:master.
This way, the app files can be changed across all Rails versions at once.
Just FYI, I found the matching files with fdupes, then replaced with this script: