- Implement comprehensive email notification system for ticket purchases and event reminders - Add event reminder job with configurable scheduling - Enhance ticket mailer with QR code generation and proper formatting - Update order model with email delivery tracking - Add comprehensive test coverage for all email functionality - Configure proper mailer settings and disable annotations - Update backlog to reflect completed email features 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
817 B
Ruby
24 lines
817 B
Ruby
# Disable view annotations for mailer templates to prevent HTML comments
|
|
# from breaking email formatting in development mode
|
|
if Rails.env.development?
|
|
Rails.application.configure do
|
|
# Override the annotation setting for ActionMailer specifically
|
|
config.to_prepare do
|
|
ActionMailer::Base.prepend(Module.new do
|
|
def mail(headers = {}, &block)
|
|
# Temporarily disable view annotations during email rendering
|
|
original_setting = ActionView::Base.annotate_rendered_view_with_filenames
|
|
ActionView::Base.annotate_rendered_view_with_filenames = false
|
|
|
|
result = super(headers, &block)
|
|
|
|
# Restore original setting
|
|
ActionView::Base.annotate_rendered_view_with_filenames = original_setting
|
|
|
|
result
|
|
end
|
|
end)
|
|
end
|
|
end
|
|
end
|