Class: Thredded::Workgroup::NavsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Thredded::Workgroup::NavsController
- Defined in:
- app/controllers/thredded/workgroup/navs_controller.rb
Instance Method Summary collapse
Instance Method Details
#all_topics ⇒ Object
15 16 17 |
# File 'app/controllers/thredded/workgroup/navs_controller.rb', line 15 def all_topics @topics = gather_topics(Thredded::Topic.all) end |
#awaiting ⇒ Object
19 20 21 22 |
# File 'app/controllers/thredded/workgroup/navs_controller.rb', line 19 def awaiting @topics = gather_topics(Thredded::Topic.followed_by(thredded_current_user) .where(last_user_id: thredded_current_user.id)) end |
#following ⇒ Object
11 12 13 |
# File 'app/controllers/thredded/workgroup/navs_controller.rb', line 11 def following @topics = gather_topics(Thredded::Topic.followed_by(thredded_current_user)) end |
#unread ⇒ Object
7 8 9 |
# File 'app/controllers/thredded/workgroup/navs_controller.rb', line 7 def unread @topics = gather_topics(Thredded::Topic.unread_followed_by(thredded_current_user)) end |