mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 16:38:23 +00:00
* 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
14 lines
355 B
Ruby
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
|