Sha256: c4098226cfabd4fd7c543ceaadf17c1dd7cc4ef0b52ad20bd194c9248e4abc25
Contents?: true
Size: 546 Bytes
Versions: 5
Compression:
Stored size: 546 Bytes
Contents
class VanityMailer < ActionMailer::Base include Vanity::Rails::Helpers include ActionView::Helpers::AssetTagHelper include ActionView::Helpers::TagHelper def ab_test_subject(user) use_vanity_mailer user mail subject: ab_test(:pie_or_cake).to_s, body: "" end def ab_test_content(user) use_vanity_mailer user image_html = view_context.vanity_tracking_image(Vanity.context.vanity_identity, :open, host: "127.0.0.1:3000") mail do |format| format.html { render html: image_html.html_safe } end end end
Version data entries
5 entries across 5 versions & 1 rubygems