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:

  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.