aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/mailers/base_mailer.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add test and change how format set in ActionMailerJohn Hawthorn2019-03-011-0/+4
| | | | | | | | | | Previously this used self.formats= to set the format which render would use to find templates. This worked, but was untested, and looked a little confusing because it was doing the mutation within a loop. This commit replaces the assignment with passing formats: [format] into the render call, which makes it more obvious that that's the purpose of the format. It also adds a test to verify the formats being used.
* Don’t log recipients when sending mailJaap van der Plas2019-02-131-2/+2
| | | | | | Since production applications typically run with log level info and email adresses should be considered as sensitive data we want to prevent them from ending up in the logs. In development mode (with log level debug) they are still logged as part of the Mail::Message object.
* Merge pull request #22534 from evopark/masterRafael Mendonça França2018-11-191-0/+7
|\ | | | | | | ActionMailer: support overriding template name in multipart
| * ActionMailer: support overriding template name in multipartMarcus Ilgner2015-12-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Implicit rendering in multipart blocks now also uses the template name from the options hash instead of always using the action name. So you can now write mail(template_name: template_name) do |format| format.text format.html end
* | Skip delivery notification when perform_deliveries is false.Yoshiyuki Kinjo2018-09-081-0/+5
| |
* | Use frozen string literal in actionmailer/Kir Shatrov2017-07-231-0/+2
| |
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* | Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
| |
* | Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-3/+3
| |
* | Remove deprecated support to :text in renderRafael Mendonça França2016-10-101-3/+3
| |
* | Add three new rubocop rulesRafael Mendonça França2016-08-161-4/+4
| | | | | | | | | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* | applies new string literal convention in actionmailer/testXavier Noria2016-08-061-14/+14
|/ | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* 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 ````
* Ruby's new Hash syntax applied in actionmailerMr A2013-11-141-1/+1
|
* 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
* 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-071-20/+20
|
* 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.
* Move config_accessor :asset_host from ActionController::Base to ↵Jeroen van Dijk and Josh Kalderimis2010-07-241-0/+114
AbstractController which fixes issues with asset_host in ActionMailer Including: - Moved mailer objects in separate directory - Added two tests for asset_host configuration option