ROM::ConfigurationDSL#plugin

Parsed documentation:
View on GitHub
Configures a plugin for a specific adapter to be enabled for all relations

@example
  config = ROM::Configuration.new(:sql, 'sqlite::memory')

  config.plugin(:sql, relations: :instrumentation) do |p|
    p.notifications = MyNotificationsBackend
  end

  config.plugin(:sql, relations: :pagination)

@param [Symbol] adapter The adapter identifier
@param [Hash<Symbol=>Symbol>] spec Component identifier => plugin identifier

@return [Plugin]

@api public
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.