Sha256: 6353b16fc1d1c99171c23b48690e757fdff2063265c5099f686637a7ebcc7f25
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
module SnapshotInspector module Test module ActionMailerHeaders extend ActiveSupport::Concern included do before_action :snapshot_inspector_headers, if: -> { Rails.env.test? } end private def snapshot_inspector_headers headers["X-SnapshotInspector-Mailer-Name"] = mailer_name headers["X-SnapshotInspector-Action-Name"] = action_name end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snapshot_inspector-0.1.1 | lib/snapshot_inspector/test/action_mailer_headers.rb |