Sha256: 2c50b98bb38756615a6bae3bbfce665da278a48f1d8fe996be289ab355fb5f1c

Contents?: true

Size: 516 Bytes

Versions: 12

Compression:

Stored size: 516 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

    mail do |format|
      format.html { render :text=>view_context.vanity_tracking_image(Vanity.context.vanity_identity, :open, :host => "127.0.0.1:3000") }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vanity-2.2.10 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.9 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.8 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.7 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.6 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.4 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.3 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.2 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.1 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.2.0 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.1.2 test/dummy/app/mailers/vanity_mailer.rb
vanity-2.1.1 test/dummy/app/mailers/vanity_mailer.rb