This commit is contained in:
yutao 2015-06-12 11:55:29 +08:00
parent dbb6c9f54c
commit 0ca913bc83
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
module ActivityNotifysHelper
def get_new_notify_count(container,type)
logger.info('xxoo')
query = ActivityNotify.where('activity_container_id=? and activity_container_type=? and notify_to=?',container.id,type,User.current.id);
query = ActivityNotify.where('activity_container_id=? and activity_container_type=? and notify_to=? and is_read=0',container.id,type,User.current.id);
return query.count()
end
end