Module: Thredded::TopicCommon
- Extended by:
- ActiveSupport::Concern
- Included in:
- PrivateTopic, Topic
- Defined in:
- app/models/concerns/thredded/topic_common.rb
Defined Under Namespace
Modules: ClassMethods
Classes: CachingHash
Instance Method Summary
collapse
Instance Method Details
#last_user ⇒ Object
31
32
33
|
# File 'app/models/concerns/thredded/topic_common.rb', line 31
def last_user
super || NullUser.new
end
|
#private? ⇒ Boolean
35
36
37
|
# File 'app/models/concerns/thredded/topic_common.rb', line 35
def private?
!public?
end
|
#user ⇒ Object
27
28
29
|
# File 'app/models/concerns/thredded/topic_common.rb', line 27
def user
super || NullUser.new
end
|