|
|
@ -4,7 +4,7 @@ namespace :competition_notice do
|
|
|
|
|
|
|
|
|
|
|
|
task :send_message => :environment do
|
|
|
|
task :send_message => :environment do
|
|
|
|
puts "--------------------------------competition_notice send_message start"
|
|
|
|
puts "--------------------------------competition_notice send_message start"
|
|
|
|
attachment = Attachment.where(id: 230670).first
|
|
|
|
attachment = Attachment.where(id: 375091).first
|
|
|
|
if attachment.present?
|
|
|
|
if attachment.present?
|
|
|
|
path = attachment.disk_directory
|
|
|
|
path = attachment.disk_directory
|
|
|
|
name = attachment.disk_filename
|
|
|
|
name = attachment.disk_filename
|
|
|
|