|
# desc "Explaining what the task does"
|
|
# task :survey do
|
|
# # Task goes here
|
|
# end
|
|
namespace :survey_tasks do
|
|
task :prepare_download,[:surveyid] => :environment do |task,args|
|
|
puts "Cron initiated with #{args.surveyid}"
|
|
id = args.surveyid
|
|
SurveysHelper.generate_xlsx(id)
|
|
end
|
|
end |