Sha256: aaa3d414b8f8caed150210cc8e795550abd1dd217d7706a83147460524cc22a7
Contents?: true
Size: 830 Bytes
Versions: 12
Compression:
Stored size: 830 Bytes
Contents
module RailsAdmin EXTENSIONS = [] AUTHORIZATION_ADAPTERS = {} AUDITING_ADAPTERS = {} CONFIGURATION_ADAPTERS = {} # Extend RailsAdmin # # The extension may define various adapters (e.g., for authorization) and # register those via the options hash. def self.add_extension(extension_key, extension_definition, options = {}) options.assert_valid_keys(:authorization, :configuration, :auditing) EXTENSIONS << extension_key if options[:authorization] AUTHORIZATION_ADAPTERS[extension_key] = extension_definition::AuthorizationAdapter end if options[:configuration] CONFIGURATION_ADAPTERS[extension_key] = extension_definition::ConfigurationAdapter end if options[:auditing] AUDITING_ADAPTERS[extension_key] = extension_definition::AuditingAdapter end end end
Version data entries
12 entries across 12 versions & 2 rubygems