Sha256: a5d64ae70e9b99d05ba012783562546ca4b3a28f0900bcdeb28e342cd68d95c5

Contents?: true

Size: 391 Bytes

Versions: 82

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

if defined?(Dkim) && ENV['DKIM_PATH'] && File.exists?(ENV['DKIM_PATH'])
  Dkim::domain      = ENV.fetch('DKIM_DOMAIN') { BetterRecord.app_domain_name }
  Dkim::selector    = `hostname`.strip.to_sym
  Dkim::private_key = File.read(ENV['DKIM_PATH'])
  # This will sign all ActionMailer deliveries
  ActionMailer::Base.register_interceptor(Dkim::Interceptor)
end

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
better_record-0.25.2 config/initializers/dkim.rb
better_record-0.25.1 config/initializers/dkim.rb
better_record-0.25.0 config/initializers/dkim.rb
better_record-0.24.4 config/initializers/dkim.rb
better_record-0.24.3 config/initializers/dkim.rb
better_record-0.23.7 config/initializers/dkim.rb
better_record-0.23.6 config/initializers/dkim.rb
better_record-0.23.5 config/initializers/dkim.rb
better_record-0.23.4 config/initializers/dkim.rb
better_record-0.23.3 config/initializers/dkim.rb
better_record-0.22.9 config/initializers/dkim.rb
better_record-0.22.8 config/initializers/dkim.rb
better_record-0.22.7 config/initializers/dkim.rb
better_record-0.22.6 config/initializers/dkim.rb
better_record-0.22.5 config/initializers/dkim.rb
better_record-0.22.4 config/initializers/dkim.rb
better_record-0.22.3 config/initializers/dkim.rb
better_record-0.21.3 config/initializers/dkim.rb
better_record-0.22.2 config/initializers/dkim.rb
better_record-0.22.0 config/initializers/dkim.rb