Class: Decidim::Surveys::Abilities::AdminAbility

Inherits:
Abilities::AdminAbility
  • Object
show all
Defined in:
app/models/decidim/surveys/abilities/admin_ability.rb

Overview

Defines the abilities related to surveys for a logged in admin user. Intended to be used with ‘cancancan`.

Instance Method Summary collapse

Instance Method Details

#define_abilitiesObject



9
10
11
12
13
# File 'app/models/decidim/surveys/abilities/admin_ability.rb', line 9

def define_abilities
  super

  can :manage, Survey
end