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
37
38
39
|
# File 'app/models/concerns/thredded/topic_common.rb', line 37
def last_user
super || Thredded::NullUser.new
end
|
#private? ⇒ Boolean
41
42
43
|
# File 'app/models/concerns/thredded/topic_common.rb', line 41
def private?
!public?
end
|
#user ⇒ Object
33
34
35
|
# File 'app/models/concerns/thredded/topic_common.rb', line 33
def user
super || Thredded::NullUser.new
end
|