diff --git a/app/models/swf_asset.rb b/app/models/swf_asset.rb index 7a88a55b..1ead13ba 100644 --- a/app/models/swf_asset.rb +++ b/app/models/swf_asset.rb @@ -45,11 +45,11 @@ class SwfAsset < ApplicationRecord end def image_url(size=IMAGE_SIZES[:large]) - host = ASSET_HOSTS[:swf_asset_images] size_key = size.join('x') - image_dir = "#{self['type']}/#{partition_path}#{self.remote_id}" - "https://#{host}/#{image_dir}/#{size_key}.png?#{image_version}" + + "https://impress-asset-images.openneo.net/#{image_dir}/#{size_key}.png?" + + "#{image_version}" end def images diff --git a/config/initializers/asset_hosts.rb b/config/initializers/asset_hosts.rb deleted file mode 100644 index 287f1ef6..00000000 --- a/config/initializers/asset_hosts.rb +++ /dev/null @@ -1,3 +0,0 @@ -ASSET_HOSTS = { - :swf_asset_images => 'impress-asset-images.openneo.net' -}