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
-
#action_permissible ⇒ Object
Includes the Permissible module in the calling model class to manage permissions for controller actions.
Instance Method Details
#action_permissible ⇒ Object
Includes the Permissible module in the calling model class to manage permissions for controller actions.
@example:
class User < ApplicationRecord
action_permissible
end
25 26 27 |
# File 'lib/action_sentinel.rb', line 25 def action_permissible include ActionSentinel::Permissible end |