Module: Reactor::Permission

Defined in:
lib/reactor/permission.rb

Overview

This module adds #permission method to obj that act as a gateway for permission checking, see documentation for [Permission::PermissionProxy] for more details. Including this module also alters typical ActiveRecord call chain, so that it becomes:

  1. permission checking

  2. validations (if [Reactor::Validations] is included)

  3. callbacks (before_*, around_*, after_*)

Therefore if the user lacks permissions no futher actions are executed.

See Also:

  • [Permission[Permission::PermissionProxy]

Defined Under Namespace

Modules: Base Classes: PermissionLookup, PermissionProxy