diff options
Diffstat (limited to 'lib/bundler/fetcher/compact_index.rb')
-rw-r--r-- | lib/bundler/fetcher/compact_index.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/fetcher/compact_index.rb b/lib/bundler/fetcher/compact_index.rb index fb77451822..9461368df5 100644 --- a/lib/bundler/fetcher/compact_index.rb +++ b/lib/bundler/fetcher/compact_index.rb @@ -110,7 +110,7 @@ module Bundler begin downloader.fetch(fetch_uri + path, headers) rescue NetworkDownError => e - raise unless Bundler.settings[:allow_offline_install] && headers["If-None-Match"] + raise unless Bundler.feature_flag.allow_offline_install? && headers["If-None-Match"] Bundler.ui.warn "Using the cached data for the new index because of a network error: #{e}" Net::HTTPNotModified.new(nil, nil, nil) end |