Module: DmForum

Defined in:
app/models/dm_forum/concerns/user.rb,
lib/dm_forum.rb,
lib/dm_forum/engine.rb,
lib/dm_forum/version.rb,
app/helpers/dm_forum/forum_helper.rb,
app/models/dm_forum/concerns/ability.rb,
app/models/dm_forum/permitted_params.rb,
app/helpers/dm_forum/application_helper.rb

Overview

Wrap forum specific CanCan rules. Should be included in the main app’s Ability class. NOTE: When checking abilities, don’t check for Class level abilities, unless you don’t care about the instance level. For example, don’t use both styles

can? :moderate, Forum
can? :moderate, @forum

In this case, if you need to check the class level, then use specific

current_user.has_role? :moderator, Forum

Defined Under Namespace

Modules: ApplicationHelper, Concerns, ForumHelper, PermittedParams Classes: ApplicationController, Engine, ForumCommentsController, ForumTopicsController, ForumsController

Constant Summary collapse

VERSION =
"4.2.0"