File.join(Rails.root -> Rails.root.join

    git ls-files | grep -E '\.(rb|rake)$' | xargs perl -lapi -e 's/File\.join\(Rails\.root, /Rails.root.join(/'