Module: ActionSentinelGroup::Model

Defined in:
lib/action_sentinel_group/model.rb

Overview

Module to be included in ActionSentinel

Instance Method Summary collapse

Instance Method Details

#has_group_permissionsObject

Includes the ActionSentinelGroup::Permissions module in the calling model class to allow checking permissions for controller actions.

@example:

class User < ApplicationRecord
  has_group_permissions
end

See Also:



21
22
23
# File 'lib/action_sentinel_group/model.rb', line 21

def has_group_permissions
  include ActionSentinelGroup::Permissions
end