Commit c178cacc45c5d4fe0cdcbb77bc8524bd3a05914d
1 parent
14be0204
Exists in
master
and in
2 other branches
put comments, votes and folowers job in controller
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
controllers/myprofile/juventude_plugin_myprofile_controller.rb
@@ -8,6 +8,9 @@ class JuventudePluginMyprofileController < MyProfileController | @@ -8,6 +8,9 @@ class JuventudePluginMyprofileController < MyProfileController | ||
8 | JuventudePlugin::ReportJob.create_report_path(profile, report_path) | 8 | JuventudePlugin::ReportJob.create_report_path(profile, report_path) |
9 | Delayed::Job.enqueue(JuventudePlugin::ReportJob.new(profile.id, report_path)) | 9 | Delayed::Job.enqueue(JuventudePlugin::ReportJob.new(profile.id, report_path)) |
10 | Delayed::Job.enqueue(JuventudePlugin::PeopleJob.new(profile.id, report_path)) | 10 | Delayed::Job.enqueue(JuventudePlugin::PeopleJob.new(profile.id, report_path)) |
11 | + Delayed::Job.enqueue(JuventudePlugin::CommentsJob.new(profile.id, report_path)) | ||
12 | + Delayed::Job.enqueue(JuventudePlugin::FollowersJob.new(profile.id, report_path)) | ||
13 | + Delayed::Job.enqueue(JuventudePlugin::VotesJob.new(profile.id, report_path)) | ||
11 | 14 | ||
12 | session[:notice] = _("Favor aguardar: o relatório será criado na pasta Relatorios/%s") % report_path | 15 | session[:notice] = _("Favor aguardar: o relatório será criado na pasta Relatorios/%s") % report_path |
13 | redirect_to :back | 16 | redirect_to :back |