Skip to content

Commit 632901d

Browse files
olleolleolleJonRowe
authored andcommitted
Turn value into a String before regex match (#2106)
1 parent cf72186 commit 632901d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gemfile-rails-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version_file = File.expand_path("../.rails-version", __FILE__)
2-
case version = ENV['RAILS_VERSION'] || (File.exist?(version_file) && File.read(version_file).chomp)
2+
case version = ENV['RAILS_VERSION'] || (File.exist?(version_file) && File.read(version_file).chomp) || ''
33
when /master/
44
gem "rails", :git => "https://github.com/rails/rails.git"
55
gem "arel", :git => "https://github.com/rails/arel.git"

0 commit comments

Comments
 (0)