Skip to content

Commit

Permalink
Fix test failures on Rails < 6 due to sprockets >= 4
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerRick committed Feb 24, 2021
1 parent e88baaf commit c5a681b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
source 'https://rubygems.org'
gemspec

gem 'rails', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
if ENV['RAILS_VERSION']
gem 'rails', ENV['RAILS_VERSION']
if ENV['RAILS_VERSION'][/\d.*/] >= '6.0.0'
# use latest (4.x)
else
gem 'sprockets', '~> 3.0'
end
end

0 comments on commit c5a681b

Please sign in to comment.