Sha256: 3825940e49d74aabadb6ed308dd572a4f24fe9d368c59714969f74349c0bce99
Contents?: true
Size: 593 Bytes
Versions: 15
Compression:
Stored size: 593 Bytes
Contents
class AudioJob < Struct.new(:audio) def perform asset = Gluttonberg::Asset.find(audio) if Gluttonberg::Setting.get_setting("audio_assets") == "Enable" if !Gluttonberg::Setting.get_setting("s3_key_id").blank? && !Gluttonberg::Setting.get_setting("s3_access_key").blank? && !Gluttonberg::Setting.get_setting("s3_server_url").blank? && !Gluttonberg::Setting.get_setting("s3_bucket").blank? asset.copy_audios_to_s3 end end #setting enabled end def save_asset_to(asset) Rails.root.to_s + "/public" + asset.asset_folder_path end end
Version data entries
15 entries across 15 versions & 1 rubygems