We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a1f4c commit 6af16f2Copy full SHA for 6af16f2
src/Scripts/helpers.js
@@ -39,9 +39,13 @@ export function showNotification(
39
}
40
41
export function isRailsInProject() {
42
- const gemfilePath = nova.workspace.path + '/Gemfile'
+ let gemfilePath
43
44
- if (!nova.fs.access(gemfilePath, nova.fs.F_OK)) {
+ if (nova.fs.access(nova.workspace.path + '/Gemfile', nova.fs.F_OK)) {
45
+ gemfilePath = nova.workspace.path + '/Gemfile'
46
+ } else if (nova.fs.access(nova.workspace.path + '/gems.rb', nova.fs.F_OK)) {
47
+ gemfilePath = nova.workspace.path + '/gems.rb'
48
+ } else {
49
return false
50
51
0 commit comments