module Paperdragon::Attachment::SanitizeUid

Public Instance Methods

sanitize(uid) click to toggle source
# File lib/paperdragon/attachment.rb, line 77
def sanitize(uid)
  #URI::encode(uid) # this is wrong, we can't send %21 in path to S3!
  uid.gsub(/(#|\?)/, "_") # escape # and ?, only.
end
uid_from(*args) click to toggle source
Calls superclass method
# File lib/paperdragon/attachment.rb, line 73
def uid_from(*args)
  sanitize(super)
end