Skip to content

Commit

Permalink
Prepend bin/rails with ruby executable on Windows in erb-loader (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
hron authored and gauravtiwari committed Feb 24, 2018
1 parent 95b2671 commit 49022f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/loaders/erb.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
use: [{
loader: 'rails-erb-loader',
options: {
runner: 'bin/rails runner'
runner: (/^win/.test(process.platform) ? 'ruby ' : '') + 'bin/rails runner'
}
}]
}

0 comments on commit 49022f2

Please sign in to comment.