|
|
|
@ -85,6 +85,9 @@ class WordsController < ApplicationController
|
|
|
|
|
elsif @journal_destroyed.jour_type == "Course"
|
|
|
|
|
@course = Course.find @journal_destroyed.jour_id
|
|
|
|
|
@jours_count = @course.journals_for_messages.where('m_parent_id IS NULL').count
|
|
|
|
|
elsif @journal_destroyed.jour_type == "Principal"
|
|
|
|
|
@user = User.find(@journal_destroyed.jour_id)
|
|
|
|
|
@jours_count = @user.journals_for_messages.where('m_parent_id IS NULL').count
|
|
|
|
|
end
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.js
|
|
|
|
|