Class: Decidim::Assemblies::Abilities::AssemblyAdminAbility

Inherits:
AssemblyRoleAbility show all
Defined in:
app/models/decidim/assemblies/abilities/assembly_admin_ability.rb

Overview

Defines the abilities for an assembly admin user. Intended to be used with ‘cancancan`.

Instance Attribute Summary

Attributes inherited from AssemblyRoleAbility

#user

Instance Method Summary collapse

Methods inherited from AssemblyRoleAbility

#define_abilities, #initialize

Constructor Details

This class inherits a constructor from Decidim::Assemblies::Abilities::AssemblyRoleAbility

Instance Method Details

#roleObject



9
10
11
# File 'app/models/decidim/assemblies/abilities/assembly_admin_ability.rb', line 9

def role
  :admin
end