Class: Permisi::Backend::ActiveRecord::Role

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/permisi/backend/active_record/role.rb

Instance Method Summary collapse

Instance Method Details

#allows?(action_path) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/permisi/backend/active_record/role.rb', line 20

def allows?(action_path)
  Permisi::PermissionUtil.allows?(permissions, action_path)
end