Skip to content

Commit ace2f2b

Browse files
authored
pin rails on older rubies (#1772)
1 parent 79c78c2 commit ace2f2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Gemfile-rails-dependencies

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ when nil, false, ""
2424
if RUBY_VERSION < '1.9.3'
2525
# Rails 4+ requires 1.9.3+, so on earlier versions default to the last 3.x release.
2626
gem "rails", "~> 3.2.17"
27+
elsif RUBY_VERSION < '2.2.0'
28+
# Rails 5+ requires 2.2+, so on earlier versions default to the last 4.x release.
29+
gem "rails", "~> 4.2.0"
2730
else
2831
gem "rails", "~> 5.0.0"
2932
end

0 commit comments

Comments
 (0)