Sha256: bbbd009c187483562629252b529af19ba8c7334a3cd0405e206426fa704802d7

Contents?: true

Size: 439 Bytes

Versions: 18

Compression:

Stored size: 439 Bytes

Contents

class Mailer < ActionMailer::Base

  if Rails.version >= "3"

    default :from => "from@example.com",
            :to => "to@example.com"

    def email(body = "body")
      mail(:subject => "email") do |format|
        format.text { render :text => body }
      end
    end

  else

    def email(body_text = "body")
      recipients EMAIL_RECIPIENT
      from EMAIL_SENDER
      subject "email"
      body body_text
    end

  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spreewald-0.6.7 tests/shared/app/models/mailer.rb
spreewald-0.6.6 tests/shared/app/models/mailer.rb
spreewald-0.6.5 tests/shared/app/models/mailer.rb
spreewald-0.6.4 tests/shared/app/models/mailer.rb
spreewald-0.6.3 tests/shared/app/models/mailer.rb
spreewald-0.6.2 tests/shared/app/models/mailer.rb
spreewald-0.6.1 tests/shared/app/models/mailer.rb
spreewald-0.6.0 tests/shared/app/models/mailer.rb
spreewald-0.5.20 tests/shared/app/models/mailer.rb
spreewald-0.5.19 tests/shared/app/models/mailer.rb
spreewald-0.5.18 tests/shared/app/models/mailer.rb
spreewald-0.5.17 tests/shared/app/models/mailer.rb
spreewald-0.5.16 tests/shared/app/models/mailer.rb
spreewald-0.5.15 tests/shared/app/models/mailer.rb
spreewald-0.5.14 tests/shared/app/models/mailer.rb
spreewald-0.5.13 tests/shared/app/models/mailer.rb
spreewald-0.5.12 tests/shared/app/models/mailer.rb
spreewald-0.5.11 tests/shared/app/models/mailer.rb