require 'griddler'
require 'griddler/ses/version'
require 'griddler/ses/adapter'
require 'griddler/ses/middleware'
require 'griddler/ses/railtie'
require 'griddler/ses/config'
require 'griddler/ses/attachments_wrapper'
require 'griddler/ses/prepare_notification_params'
require 'griddler/ses/message_content'
require 'griddler/ses/message_content/from_params_fetcher'
require 'griddler/ses/message_content/s3_fetcher'

module Griddler
  module Ses
    def self.config(&block)
      @config ||= Griddler::Ses::Config.new
      block_given? ? yield(@config) : @config
    end
  end
end

Griddler.adapter_registry.register(:ses, Griddler::Ses::Adapter)
