Module: ActionSentinel

Defined in:
lib/action_sentinel.rb,
lib/action_sentinel/railtie.rb,
lib/action_sentinel/version.rb,
lib/action_sentinel/permissible.rb,
lib/action_sentinel/authorization.rb,
lib/generators/action_sentinel/access_permission_generator.rb

Overview

The ActionSentinel module provides a simple mechanism for user authorization within Rails applications, based on permissions in model-level.

Defined Under Namespace

Modules: Authorization, Permissible Classes: AccessPermissionGenerator, Railtie, UnauthorizedAction

Constant Summary collapse

VERSION =
"0.3.0"

Instance Method Summary collapse

Instance Method Details

#action_permissibleObject

Includes the Permissible module in the calling model class to manage permissions for controller actions.

@example:

class User < ApplicationRecord
  action_permissible
end

See Also:



25
26
27
# File 'lib/action_sentinel.rb', line 25

def action_permissible
  include ActionSentinel::Permissible
end