def register(name, mod, options = EMPTY_HASH)
      type    = options.fetch(:type)
      adapter = options.fetch(:adapter, :default)

      plugins_for(type, adapter).register(name, mod, options)
    end
def register(name, mod, options = EMPTY_HASH)
      type    = options.fetch(:type)
      adapter = options.fetch(:adapter, :default)

      plugins_for(type, adapter).register(name, mod, options)
    end
@api private
 Register a plugin for future use

 @param [Symbol] name The registration name for the plugin
 @param [Module] mod The plugin to register
 @param [Hash] options optional configuration data
 @option options [Symbol] :type What type of plugin this is (command,
 relation or mapper)
 @option options [Symbol] :adapter (:default) which adapter this plugin
 applies to. Leave blank for all adapters