Pat Allan
f39c6fd927
Add the frozen_string_literal pragma comment to all Ruby files. ( #4725 )
2017-12-21 15:36:29 -02:00
Lucas Mazza
13d4fd4088
Merge pull request #4193 from 3wille/master
...
add block passthrough to devise_mail
2016-07-22 15:14:51 -03:00
Lucas Mazza
54e7a3b9d9
`Devise::Mailer#scope_name` and `Devise::Mailer#resource` shouldn't be public.
2016-07-15 16:02:43 -03:00
Frederik Wille
e90ba2fbcb
add block passthrough to devise_mail
...
ActionMailer's ``mail`` method may receive a block for customizing the mails
format
``devise_mail`` now has the same functionality by just
passing the block to ``mail`` call.
fixes plataformatec/devise#2341
2016-07-13 11:25:35 +02:00
Paul Menzel
f2d7b8f740
Spell verb *set up* with a space
...
The verb *set up* is spelled with a space [1].
```
$ git grep -l 'to setup' | xargs sed -i 's/to setup/to set up/g'
$ git grep -l '# Setup' | xargs sed -i 's/# Setup/# Set up/g'
$ git grep -l "test 'setup" | xargs sed -i "s/test 'setup/test 'set up/g"
```
Revert the change for *setup block yields self*.
Change the rest manually.
[1] http://www.merriam-webster.com/dictionary/set%20up
2016-02-02 19:09:19 +01:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
José Valim
7e96bac6a4
Get rid of deprecated code
2013-08-05 11:24:04 +02:00
Vipul A M
2e6457006e
Remove unused variables and fix typos
2013-04-18 10:24:38 +05:30
Carlos Antonio da Silva
fa5ae57ce4
Use instance_eval instead of Proc#bind
...
Keep the implementation more similar to how it works in Action Mailer,
and avoid deprecation warnings with Proc#bind being raised in rails4
branch.
2013-04-13 11:35:51 -03:00
Tomas Varneckas
1acd3d1790
Fix devise sender bug with custom devise mailers.
...
The devise sender detection must take into account that the default
sender set in the custom devise mailer can be a proc.
2013-04-12 16:48:48 +03:00
Carlos Antonio da Silva
83ad67bd51
Fix inheriting mailer templates from Devise::Mailer
...
Previously inheriting from Devise::Mailer would not render default views
from devise when the inheriting mailer didn't have the view. Now it'll
correctly pick the default one from Devise::Mailer.
2013-01-29 00:08:26 -02:00
Danial Pearce
d48414b0a5
Rename Devise::Mailer.translate() to something more inline with what it does.
2013-01-10 15:26:06 +11:00
José Valim
19b5bcbe0f
Accept mail options in Devise::Mailer and deprecate headers_for
2013-01-04 18:52:49 +01:00
José Valim
86f0bff332
Apparently Rails 3.1 does not like @headers as ivar
2012-12-13 09:59:36 +01:00
José Valim
4c83743263
unconfirmed_email now uses the proper e-mail on salutation, related to #2060
2012-12-13 09:02:59 +01:00
Chris Adams
d1bf31729d
Address issue #1936
...
Update mailer to accept reply_to as a default param as well, as discussed in
https://github.com/plataformatec/devise/issues/1936#issuecomment-6583637
2012-06-26 23:11:35 +01:00
José Valim
59f2767345
Remove deprecated code and tests.
2011-09-29 13:11:12 +02:00
Szymon Przybył
7665cbf21d
Allow to set default 'from' header of Devise mails in custom mailer class
2011-08-20 22:35:47 +02:00
José Valim
5423f2d5cb
Properly deprecate setup_mail
2011-07-01 04:23:12 -07:00
José Valim
42f0285278
Extract mailer functionality, closes #1164
2011-06-27 12:13:00 -03:00