diff options
-rw-r--r-- | activestorage.gemspec | 2 | ||||
-rw-r--r-- | lib/active_storage/service/gcs_service.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activestorage.gemspec b/activestorage.gemspec index 9546b60783..eeefa03903 100644 --- a/activestorage.gemspec +++ b/activestorage.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/rails/activestorage" s.license = "MIT" - s.required_ruby_version = ">= 2.3.0" + s.required_ruby_version = ">= 2.2.2" s.add_dependency "rails", ">= 5.2.0.alpha" diff --git a/lib/active_storage/service/gcs_service.rb b/lib/active_storage/service/gcs_service.rb index bff2f9366e..73629f7486 100644 --- a/lib/active_storage/service/gcs_service.rb +++ b/lib/active_storage/service/gcs_service.rb @@ -32,7 +32,7 @@ class ActiveStorage::Service::GCSService < ActiveStorage::Service def delete(key) instrument :delete, key do - file_for(key)&.delete + file_for(key).try(:delete) end end |