module Shrine::Plugins::RefreshMetadata::FileMethods

  1. lib/shrine/plugins/refresh_metadata.rb

Methods

Public Instance

  1. refresh_metadata!

Public Instance methods

refresh_metadata! (context = {})
[show source]
# File lib/shrine/plugins/refresh_metadata.rb, line 20
def refresh_metadata!(context = {})
  refreshed_metadata = open { uploader.extract_metadata(self, context) }
  metadata.merge!(refreshed_metadata)
end