Skip to content

Commit 3a345bb

Browse files
committed
Use correct Rails version switch for jdbcsqlite3-adapter
1 parent 0746fae commit 3a345bb

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
@@ -34,7 +34,7 @@ else
3434
gem "puma"
3535
end
3636

37-
if version >= '6'
37+
if /(\d+)/.match(ENV['RAILS_VERSION'])[1].to_i >= 6
3838
gem "activerecord-jdbcsqlite3-adapter", "~> 60.0.rc1", platforms: [:jruby]
3939
else
4040
gem 'activerecord-jdbcsqlite3-adapter', platforms: [:jruby]

0 commit comments

Comments
 (0)