Sha256: e79af02de5a1d4e93d503b8fd88c0dd8da56b4235e0416be7977bb7da240a34a

Contents?: true

Size: 840 Bytes

Versions: 22

Compression:

Stored size: 840 Bytes

Contents

class BasicMailer < ActionMailer::Base
  default :from => 'nobody@example.com'

  def basic_mail
    mail(:to => 'somebody@example.com', :subject => 'Basic Mail')
  end

  def mail_with_fortitude_layout
    mail(:to => 'somebody_with_fortitude_layout@example.com', :subject => 'Basic Mail') do |format|
      format.html { render :layout => 'fortitude_layout' }
    end
  end

  def mail_with_fortitude_layout_and_erb_view
    mail(:to => 'somebody_with_fortitude_layout_and_erb_view@example.com', :subject => 'Basic Mail') do |format|
      format.html { render :layout => 'fortitude_layout' }
    end
  end

  def mail_with_erb_layout_and_fortitude_view
    mail(:to => 'somebody_with_erb_layout_and_fortitude_view@example.com', :subject => 'Basic Mail') do |format|
      format.html { render :layout => 'erb_layout' }
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
fortitude-0.9.6-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.6 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.5-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.5 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.4-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.4 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.3-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.3 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.2-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.2 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.1-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.1 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.0-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.9.0 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.0.10-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.0.10 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.0.9-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.0.9 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.0.7-java spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb
fortitude-0.0.7 spec/rails/templates/mailer_system_spec/app/mailers/basic_mailer.rb