Skip to content

Commit e5c79ab

Browse files
committed
Fix check when no command is supplied
Closes #666.
1 parent c45b7ee commit e5c79ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/client/rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def call
2020

2121
if COMMANDS.include?(command_name)
2222
Run.call(["rails_#{command_name}", *args.drop(2)])
23-
elsif command_name.start_with?("db:")
23+
elsif command_name&.start_with?("db:")
2424
Run.call(["rake", *args.drop(1)])
2525
else
2626
require "spring/configuration"

0 commit comments

Comments
 (0)