lib/pbbuilder/template.rb in pbbuilder-0.13.2 vs lib/pbbuilder/template.rb in pbbuilder-0.13.3

- old
+ new

@@ -112,16 +112,16 @@ def _write_fragment_cache(key, options = nil) @context.controller.instrument_fragment_cache :write_fragment, key do yield.tap do |value| begin ::Rails.cache.write(key, value, options) - rescue SystemCallError - # In case ActiveSupport::Cache::FileStore in Rails is used as a cache, - # File.atomic_write can have a race condition and fail to rename temporary - # file. We're attempting to recover from that, by catching this specific + rescue ::SystemCallError + # In case ActiveSupport::Cache::FileStore in Rails is used as a cache, + # File.atomic_write can have a race condition and fail to rename temporary + # file. We're attempting to recover from that, by catching this specific # error and returning a value. # - # @see https://github.com/rails/rails/pull/44151 + # @see https://github.com/rails/rails/pull/44151 # @see https://github.com/rails/rails/blob/main/activesupport/lib/active_support/core_ext/file/atomic.rb#L50 value end end end