Module: Thredded::Workgroup
- Defined in:
- lib/thredded/workgroup.rb,
lib/thredded/workgroup/engine.rb,
lib/thredded/workgroup/version.rb,
app/view_hooks/thredded/workgroup/view_hooks.rb,
app/view_models/thredded/workgroup/paginator.rb,
app/controllers/thredded/workgroup/navs_controller.rb,
app/controllers/thredded/workgroup/topics_controller.rb,
app/jobs/thredded/workgroup/mark_all_topics_read_job.rb,
app/controllers/thredded/workgroup/application_controller.rb,
app/controllers/thredded/workgroup/read_states_controller.rb,
app/view_models/thredded/workgroup/topics_page_view_with_last_post.rb,
app/controllers/concerns/thredded/workgroup/all_unread_followed_topics.rb,
app/controllers/concerns/thredded/workgroup/application_controller_retaining.rb,
app/controllers/concerns/thredded/workgroup/posts_controller_which_redirects.rb
Defined Under Namespace
Modules: AllUnreadFollowedTopics, ApplicationControllerRetaining, PostsControllerWhichRedirects, TopicsPageViewWithLastPost, ViewHooks
Classes: ApplicationController, Engine, MarkAllTopicsReadJob, NavsController, Paginator, ReadStatesController, TopicsController
Constant Summary
collapse
- VERSION =
"0.4.1"
Class Method Summary
collapse
Class Method Details
.current_for(params) ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/thredded/workgroup.rb', line 12
def self.current_for(params)
if params[:controller].include?("workgroup")
params[:action].to_sym
else
:messageboards
end
end
|
.navbar_class(params, target) ⇒ Object
8
9
10
|
# File 'lib/thredded/workgroup.rb', line 8
def self.navbar_class(params, target)
"active" if current_for(params) == target
end
|