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
Instance Method Summary collapse
Instance Method Details
#last_user ⇒ Object
32 33 34 |
# File 'app/models/concerns/thredded/topic_common.rb', line 32 def last_user super || NullUser.new end |
#private? ⇒ Boolean
36 37 38 |
# File 'app/models/concerns/thredded/topic_common.rb', line 36 def private? !public? end |
#user ⇒ Object
28 29 30 |
# File 'app/models/concerns/thredded/topic_common.rb', line 28 def user super || NullUser.new end |