Sha256: 3acb11199ad7f714590b5cb8d138d5d54afed3cb4ce733eef353ad1d08b69d2d
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 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
4 entries across 4 versions & 1 rubygems