diff --git a/app/controllers/words_controller.rb b/app/controllers/words_controller.rb index 3063ec5fd..7c05c5af5 100644 --- a/app/controllers/words_controller.rb +++ b/app/controllers/words_controller.rb @@ -26,7 +26,7 @@ class WordsController < ApplicationController # @message_count = a_message.count end end - @jours = @user.journals_for_messages.reverse + @jours = @user.journals_for_messages.where('m_parent_id IS NULL').reverse @limit = 10 @feedback_count = @jours.count @feedback_pages = Paginator.new @feedback_count, @limit, params['page'] diff --git a/app/models/journals_for_message.rb b/app/models/journals_for_message.rb index df2e2a162..e00564f18 100644 --- a/app/models/journals_for_message.rb +++ b/app/models/journals_for_message.rb @@ -27,7 +27,7 @@ class JournalsForMessage < ActiveRecord::Base after_create :reset_counters! after_destroy :reset_counters! - default_scope { where('m_parent_id IS NULL') } + # default_scope { where('m_parent_id IS NULL') } def self.delete_message(message_id) self.delete_all "id = #{message_id}"