Sha256: 57be009b976f9630c8c9d30ab53d572a106c544b51f37f9be68d992692ba57b0

Contents?: true

Size: 695 Bytes

Versions: 6

Compression:

Stored size: 695 Bytes

Contents

module SendGridMailer
  class Engine < ::Rails::Engine
    isolate_namespace SendGridMailer

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.fixture_replacement :factory_girl, dir: "spec/factories"
    end

    initializer "initialize" do
      require_relative "./errors"
      require_relative "./logger"
      require_relative "./definition"
      require_relative "./mail_message_ext"
      require_relative "./mailer_base_ext"
    end

    initializer "add_sendgrid_deliverer", before: "action_mailer.set_configs" do
      require_relative "./deliverer"
      ActionMailer::Base.add_delivery_method(:sendgrid, SendGridMailer::Deliverer)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
send_grid_mailer-0.5.0 lib/send_grid_mailer/engine.rb
send_grid_mailer-0.4.0 lib/send_grid_mailer/engine.rb
send_grid_mailer-0.3.0 lib/send_grid_mailer/engine.rb
send_grid_mailer-0.2.0 lib/send_grid_mailer/engine.rb
send_grid_mailer-0.1.1 lib/send_grid_mailer/engine.rb
send_grid_mailer-0.1.0 lib/send_grid_mailer/engine.rb