forked from OpenNeo/impress
c44daea318
At one point we piloted a "Camo" service to proxy HTTPS image urls for us, but it doesn't exist anymore. We already have proxies and stuff for this, so I left `Image` as a placeholder for this, but it's not working yet! This also deletes our final reference to the Addressable gem, so we can remove it!
14 lines
401 B
Ruby
14 lines
401 B
Ruby
class Image
|
|
attr_reader :insecure_url, :secure_url
|
|
|
|
def initialize(insecure_url, secure_url)
|
|
@insecure_url = insecure_url
|
|
@secure_url = secure_url
|
|
end
|
|
|
|
def self.from_insecure_url(insecure_url)
|
|
# TODO: We used to use a "Camo" server for this, but we don't anymore.
|
|
# Replace this with actual logic to actually secure the URLs!
|
|
Image.new insecure_url, insecure_url
|
|
end
|
|
end
|