Class: Thredded::Workgroup::NavsController
Instance Method Summary
collapse
#all_topics_scope, #all_unread_followed_topics_count
#topics_scope, #unread_followed_topics_count
Instance Method Details
#all_topics ⇒ Object
16
17
18
|
# File 'app/controllers/thredded/workgroup/navs_controller.rb', line 16
def all_topics
@topics = gather_topics(Thredded::Topic.all)
end
|
#awaiting ⇒ Object
20
21
22
23
|
# File 'app/controllers/thredded/workgroup/navs_controller.rb', line 20
def awaiting
@topics = gather_topics(Thredded::Topic.followed_by(thredded_current_user)
.where(last_user_id: thredded_current_user.id))
end
|
#following ⇒ Object
12
13
14
|
# File 'app/controllers/thredded/workgroup/navs_controller.rb', line 12
def following
@topics = gather_topics(Thredded::Topic.followed_by(thredded_current_user))
end
|
#unread ⇒ Object
8
9
10
|
# File 'app/controllers/thredded/workgroup/navs_controller.rb', line 8
def unread
@topics = gather_topics(Thredded::Topic.unread_followed_by(thredded_current_user))
end
|