hackatime/app/mailers/heartbeat_export_mailer.rb
Mahad Kalam 44777ad644
Data export fix + async exports + more tests (#989)
* Fix data export + Capybara

* Continue?

* A ton of system tests :D + test cleanup

* More system tests

* Add placeholder keys for tests?

* Get rid of the double-query!

* Speed up CI Chrome setup by avoiding snap installs

* Pin CI Chrome version to reduce system test flakiness

* Stabilize integrations settings system test interaction
2026-02-21 11:28:21 +00:00

14 lines
355 B
Ruby

class HeartbeatExportMailer < ApplicationMailer
def export_ready(user, recipient_email:, file_path:, filename:)
@user = user
attachments[filename] = {
mime_type: "application/json",
content: File.binread(file_path)
}
mail(
to: recipient_email,
subject: "Your Hackatime heartbeat export is ready"
)
end
end