个人留言列表优化
This commit is contained in:
parent
d28f597aed
commit
7713fba2f8
|
@ -1369,9 +1369,10 @@ class UsersController < ApplicationController
|
||||||
@jour = jours.limit(10).offset(@page * 10)
|
@jour = jours.limit(10).offset(@page * 10)
|
||||||
@type = params[:type]
|
@type = params[:type]
|
||||||
if User.current == @user
|
if User.current == @user
|
||||||
jours.update_all(:is_readed => true, :status => false)
|
@jour.update_all(:is_readed => true, :status => false)
|
||||||
jours.each do |journal|
|
@jour.each do |journal|
|
||||||
fetch_user_leaveWord_reply(journal).update_all(:is_readed => true, :status => false)
|
# fetch_user_leaveWord_reply(journal).update_all(:is_readed => true, :status => false)
|
||||||
|
journal.delay.set_children_readed_delay
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@state = false
|
@state = false
|
||||||
|
|
|
@ -344,4 +344,9 @@ class JournalsForMessage < ActiveRecord::Base
|
||||||
def content_detail
|
def content_detail
|
||||||
self.notes
|
self.notes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def set_children_readed_delay
|
||||||
|
# fetch_user_leaveWord_reply(self).update_all(:is_readed => true, :status => false)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue