2011-05-20 16:19:14 -07:00
|
|
|
class AssetImageConversionRequest
|
|
|
|
@queue = :requested_asset_images
|
|
|
|
|
2011-05-22 13:30:02 -07:00
|
|
|
def self.perform(asset_type, asset_id)
|
|
|
|
asset = SwfAsset.where(:type => asset_type).find(asset_id)
|
2011-05-20 16:19:14 -07:00
|
|
|
asset.convert_swf_if_not_converted!
|
|
|
|
end
|
|
|
|
|
|
|
|
class OnCreation < AssetImageConversionRequest
|
|
|
|
@queue = :requested_asset_images_on_creation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|