Sha256: 03210adf2c2acb952bd59dd4061c638fbd9896c0a1ca59bf8941f475e4db13c8
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
module RailsAdmin EXTENSIONS = [] AUTHORIZATION_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) EXTENSIONS << extension_key if(authorization = options[:authorization]) AUTHORIZATION_ADAPTERS[extension_key] = extension_definition::AuthorizationAdapter end if(configuration = options[:configuration]) CONFIGURATION_ADAPTERS[extension_key] = extension_definition::ConfigurationAdapter end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elucid-rails_admin-0.0.1 | lib/rails_admin/extension.rb |