survey/lib/tasks/survey_tasks.rake

11 lines
295 B
Ruby
Raw Normal View History

2014-10-06 05:55:25 +00:00
# desc "Explaining what the task does"
# task :survey do
# # Task goes here
# end
2017-04-11 06:10:01 +00:00
namespace :survey_tasks do
task :prepare_download,[:surveyid] => :environment do |task,args|
puts "Cron initiated with #{args.surveyid}"
id = args.surveyid
2021-07-08 13:31:27 +00:00
SurveysHelper.generate_xlsx(id)
2021-07-13 14:30:12 +00:00
end
2017-04-11 06:10:01 +00:00
end