Module: Thredded::UserTopicReadStateCommon

Extended by:
ActiveSupport::Concern
Included in:
UserPrivateTopicReadState, UserTopicReadState
Defined in:
app/models/concerns/thredded/user_topic_read_state_common.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#read?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/concerns/thredded/user_topic_read_state_common.rb', line 11

def read?
  postable.last_post_at <= read_at
end