Sha256: 0081626a06daa8b5cc56a4a886654d27487e99debc5232629c6b52cb06968604

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module <%= component_module_name %>
    module Abilities
      module Admin
        # Defines the abilities related to <%= component_name %> for a logged in admin user.
        # Intended to be used with `cancancan`.
        class AdminAbility < Decidim::Abilities::AdminAbility
          def define_abilities
            # can :manage, SomeResource
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-generators-0.11.2 lib/decidim/generators/component_templates/app/models/decidim/component/abilities/admin/admin_ability.rb.erb
decidim-generators-0.11.1 lib/decidim/generators/component_templates/app/models/decidim/component/abilities/admin/admin_ability.rb.erb
decidim-generators-0.11.0.pre1 lib/decidim/generators/component_templates/app/models/decidim/component/abilities/admin/admin_ability.rb.erb