Method: ForumsHelper#recent_topic_activity

Defined in:
app/helpers/forums_helper.rb

#recent_topic_activity(topic) ⇒ Object

used to know if a topic has changed since we read it last



4
5
6
7
8
9
# File 'app/helpers/forums_helper.rb', line 4

def recent_topic_activity(topic)
  return false if not logged_in?
  return false unless last_active || session[:topics]
  
  return topic.replied_at > (last_active || session[:topics][topic.id])
end