aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/mailers
Commit message (Collapse)AuthorAgeFilesLines
* Action Mailer: Declarative exception handling with `rescue_from`.Jeremy Daer2016-05-151-0/+20
| | | | | | | | | | | | | | | | | | | | | | | Follows the same pattern as controllers and jobs. Exceptions raised in delivery jobs (enqueued by `#deliver_later`) are also delegated to the mailer's rescue_from handlers, so you can handle the DeserializationError raised by delivery jobs: ```ruby class MyMailer < ApplicationMailer rescue_from ActiveJob::DeserializationError do … end ``` ActiveSupport::Rescuable polish: * Add the `rescue_with_handler` class method so exceptions may be handled at the class level without requiring an instance. * Rationalize `exception.cause` handling. If no handler matches the exception, fall back to the handler that matches its cause. * Handle exceptions raised elsewhere. Pass `object: …` to execute the `rescue_from` handler (e.g. a method call or a block to instance_exec) against a different object. Defaults to `self`.
* Expand on Action Mailer Fragment caching testsVipul A M2016-04-171-0/+8
|
* Porting ActionController::Caching to ActionMailer::CachingStan Lo2016-02-231-0/+15
|
* Added test for `any` if called without specifying any format Ronak Jangir2015-09-181-0/+6
| | | | | | | | Example ````ruby mail(hash) do |format| format.any end ````
* Added ActionMailer::DeliverLaterAbdelkader Boudih2014-08-131-0/+6
|
* Ruby's new Hash syntax applied in actionmailerMr A2013-11-141-1/+1
|
* don't convert mailer default values to procsAlex Tsukernik2013-07-221-1/+2
| | | | | | Invoke mailer defaults as procs only if they are procs, do not convert with to_proc. That an object is convertible to a proc does not mean it's meant to be always used as a proc. Fixes #11533
* Fix AM testcase break with mail 2.5.4. It seems that AM's testcase was wrong.kennyj2013-05-171-1/+1
|
* drop an unused hash; change slang to SPECIALVipul A M2013-03-191-1/+1
|
* Allow passing interpolations to `#default_i18n_subject`, e.g.:Olek Janiszewski2013-01-241-0/+4
| | | | | | | | | | | | | | | # config/locales/en.yml en: user_mailer: welcome: subject: 'Hello, %{username}' # app/mailers/user_mailer.rb class UserMailer < ActionMailer::Base def welcome(user) mail(subject: default_i18n_subject(username: user.name)) end end
* Move background jobs to the 'jobs' branch until fully baked. Not shipping ↵Jeremy Kemper2012-12-211-3/+0
| | | | with Rails 4.0.
* The return value from mailer methods is not relevant.Yves Senn2012-12-101-0/+5
|
* Do not render views when mail() isn't called. (NullMail refactoring)Yves Senn2012-10-281-0/+3
|
* Update actionmailer with new hash syntax.Kirill Nikitin2012-10-072-22/+22
|
* Use synchronous queue by default. Separate queued message delivery jobs from ↵Jeremy Kemper2012-09-161-0/+1
| | | | the queued message wrappers so the queue itself needn't be marshaled (due to queue reference QueuedMessage).
* Action Mailer async flag is true by default using a Synchronous implSantiago Pastorino2012-09-111-1/+0
|
* Asynchronous ActionMailerBrian Cardarella2012-06-231-0/+3
| | | | | | | | Any ActionMailer class can be set to render and delier messages using the new Rails Queue. Some of this work was borrowed (with permission) from Nick Plante's (zapnap) reqsue_mailer gem.
* Get rid of update_details in favor of passing details to find_template.José Valim2011-09-221-1/+1
|
* Deprecate the old mailer API that was not deprecated yet.José Valim2010-08-291-1/+1
|
* Ensure templates like template.html are found but still uses the proper ↵José Valim2010-08-261-0/+4
| | | | virtual path.
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-3/+3
| | | | 's/[ \t]*$//' -i {} \;)
* Move config_accessor :asset_host from ActionController::Base to ↵Jeroen van Dijk and Josh Kalderimis2010-07-243-0/+137
AbstractController which fixes issues with asset_host in ActionMailer Including: - Moved mailer objects in separate directory - Added two tests for asset_host configuration option