module Shrine::Plugins::KitheAcceptRemoteUrl::FileMethods
Attributes
url_fetch_headers[R]
Public Class Methods
new(data)
click to toggle source
Calls superclass method
# File lib/shrine/plugins/kithe_accept_remote_url.rb, line 51 def initialize(data) # passed in as headers top-level key, but any but whitelisted keys actually # end up being thrown out by shrine, and too hard to change that, so # we'll copy it to 'metadata' if data["storage"].to_s == STORAGE_KEY.to_s && data["headers"] data["metadata"] ||= {} data["metadata"][METADATA_KEY] = data["headers"] end super end