Module: Shrine::Plugins::RefreshMetadata::FileMethods

Defined in:
lib/shrine/plugins/refresh_metadata.rb

Instance Method Summary collapse

Instance Method Details

#refresh_metadata!(**options) ⇒ Object


15
16
17
18
19
20
21
# File 'lib/shrine/plugins/refresh_metadata.rb', line 15

def refresh_metadata!(**options)
  return open { refresh_metadata!(**options) } unless opened?

   = uploader.send(:get_metadata, self, metadata: true, **options)

  @metadata = @metadata.merge()
end