1
0
Fork 0
forked from OpenNeo/impress
impress/app/models/asset_image_conversion_request.rb

13 lines
290 B
Ruby

class AssetImageConversionRequest
@queue = :requested_asset_images
def self.perform(asset_id)
asset = SwfAsset.find asset_id
asset.convert_swf_if_not_converted!
end
class OnCreation < AssetImageConversionRequest
@queue = :requested_asset_images_on_creation
end
end