From c178cacc45c5d4fe0cdcbb77bc8524bd3a05914d Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 15 Sep 2015 13:01:47 -0300 Subject: [PATCH] put comments, votes and folowers job in controller --- controllers/myprofile/juventude_plugin_myprofile_controller.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/controllers/myprofile/juventude_plugin_myprofile_controller.rb b/controllers/myprofile/juventude_plugin_myprofile_controller.rb index 848c6ea..5e7020d 100644 --- a/controllers/myprofile/juventude_plugin_myprofile_controller.rb +++ b/controllers/myprofile/juventude_plugin_myprofile_controller.rb @@ -8,6 +8,9 @@ class JuventudePluginMyprofileController < MyProfileController JuventudePlugin::ReportJob.create_report_path(profile, report_path) Delayed::Job.enqueue(JuventudePlugin::ReportJob.new(profile.id, report_path)) Delayed::Job.enqueue(JuventudePlugin::PeopleJob.new(profile.id, report_path)) + Delayed::Job.enqueue(JuventudePlugin::CommentsJob.new(profile.id, report_path)) + Delayed::Job.enqueue(JuventudePlugin::FollowersJob.new(profile.id, report_path)) + Delayed::Job.enqueue(JuventudePlugin::VotesJob.new(profile.id, report_path)) session[:notice] = _("Favor aguardar: o relatório será criado na pasta Relatorios/%s") % report_path redirect_to :back -- libgit2 0.21.2