Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/warbler/templates/bundler.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ ENV['BUNDLE_WITHOUT'] = '<%= config.bundle_without.join(':') %>'
ENV['BUNDLE_FROZEN'] = '1'
<% end -%>

# Fix for JRuby 9.4+ and Rails 7+ gem path resolution
if defined?(Gem) && Gem.respond_to?(:paths=)
Gem.paths = {
'GEM_HOME' => ENV['GEM_HOME'],
'GEM_PATH' => nil
}
end

module Bundler
module Patch
def clean_load_path
Expand Down
Loading