module Reactor::Permission
This module adds permission method to obj that act as a gateway for permission checking, see documentation for [Permission::PermissionProxy] for more details. @see [Permission::PermissionProxy]
Including this module also alters typical ActiveRecord call chain, so that it becomes:
-
permission checking
-
validations (if [Reactor::Validations] is included)
-
callbacks (before_*, around_*, after_*)
Therefore if the user lacks permissions no futher actions are executed.