Sha256: 000e5c9623c261211885b28ef68d74f44efca7a0016a716fb91a7d2ca02f2e8f
Contents?: true
Size: 647 Bytes
Versions: 16
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # This form handles permissions for a particular action in the admin panel. class PermissionForm < Form attribute :authorization_handler_name, String attribute :options, Hash def manifest Decidim::Verifications.find_workflow_manifest(authorization_handler_name) end def options_schema @options_schema ||= options_manifest.schema.new(options || {}) end def options_attributes options_manifest.attributes end private def options_manifest manifest.options end end end end
Version data entries
16 entries across 16 versions & 1 rubygems