Carlos Antonio da Silva
15135f7dc6
User assert_includes/refute_includes minitest helpers
2020-08-27 18:38:26 -03:00
Carlos Antonio da Silva
e39b9b9134
Fix order of arguments for assert_equal on tests
...
Use `assert_equal expected, actual` for proper error messages in case of
failures.
2020-08-27 18:24:17 -03:00
Samuel Pordeus
fb18c6ca8d
Fix typos
2019-11-28 18:13:47 -03:00
Koichi ITO
dac90eeb80
Use update instead of update_attributes
...
`update_attributes` and `update_attributes!` will be deprecated in Rails 6.
Refer 5645149d3a
2018-03-29 15:39:24 -03:00
Pat Allan
f39c6fd927
Add the frozen_string_literal pragma comment to all Ruby files. ( #4725 )
2017-12-21 15:36:29 -02:00
Carlos Antonio da Silva
ce071502ee
Display unconfirmed email when using reconfirmable and email changed notification
...
Otherwise we'd be mistakenly displaying the original email in the
message (which is the same we're sending the message to).
Also tweak the messaging a bit in this case, to show that the email "is
being changed" (the change hasn't taken effect yet).
Related to #4455 .
2017-03-15 11:47:47 -03:00
Carlos Antonio da Silva
c605758800
Add some basic tests for the email changed notification
2017-03-10 09:10:57 -03:00
Frederik Wille
08374f1d33
fix test
2016-07-18 09:24:46 +02:00
Frederik Wille
a5f8cd9d32
simplify test
2016-07-18 09:00:32 +02:00
Frederik Wille
65d8e94ed9
add test
...
in the test we need to declare a subclass of ``Devise::Mailer`` to give
a block to mail call inside of method which has a corresponding view
template
there are propably better ways to test this, but this is pretty much the
use case for passing a block
2016-07-15 12:22:12 +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
Vincent Woo
eb640ed344
Do not use digests for confirmation tokens
2015-07-30 01:55:50 -07:00
Michael Crismali
f37b10ef87
Switched all instances of 'not blank?' to 'present?'
2014-04-17 20:34:28 -05:00
Sadjow Leão
a2bd5631da
Use port option in default url options for ActionMailer
2014-04-04 19:01:12 -03:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
José Valim
143794d701
Use HMAC on tokens stored in the DB
2013-08-05 18:56:07 +02:00
Carlos Antonio da Silva
32a141d2a9
Fix typo in test descriptions
2013-04-13 10:54:52 -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
Carlos Antonio da Silva
72be1f1289
Match against string value, no need to create regexps
2013-01-28 23:59:15 -02: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
did
bbd117bd92
implementation of a much simpler solution
2011-11-05 16:53:27 +01: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
ff0b4deb1a
Add reply-to to e-mail headers by default. Closes #474
2010-09-21 10:07:02 +02:00
José Valim
80895c3b9a
Make I18n key for mailer compatible with lookup shortcuts, closes #245
2010-06-12 20:29:43 +02:00
Josh Kalderimis
a6a018253e
minor change to content type checking to make it more flexible when utf8 is returned
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-30 00:23:46 +02:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
Andreas Haller
5c19605d6f
Fixed test: calling Mail::Body#encoded to get a String (Rails 3)
...
From Rails' CHANGELOG
… Mail.body returns a Mail::Body class object, need to call #encoded or #decoded to get the string you want.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-26 11:00:46 +01:00
José Valim
ac742e3271
Clean up lockable and class methods API.
2010-03-10 16:13:54 +01:00
José Valim
02e8c04cde
Update views generator and now have scoped views.
2010-02-17 12:26:54 +01:00
José Valim
33941d1f62
All tests passing (except two which are errors in Rails). Now generators and initialization process.
2010-02-16 21:23:58 +01:00
José Valim
9798ad7455
Allow scoped views to be customized per controller/mailer class.
2010-02-08 17:33:22 +01:00
José Valim
d0ccd14c54
Merge remote branch 'mhfs/master'
2010-01-13 17:49:20 +01:00
José Valim
6bb1901830
Add tests for mail with proc.
2010-01-13 17:45:02 +01:00
Marcelo Silveira
9c4ddc6465
- Maximum attempts changed from 5 to 20
...
- Lockable is not turned on by default
- Fixed lockable incompatibilities with latest commits
2010-01-09 11:41:28 -02:00
Marcelo Silveira
32991e13c4
Merge and fix conflicts.
2010-01-09 11:22:27 -02:00
José Valim
a789f08d3b
Cleaning up README to be more compatible with the latest stuff.
2010-01-05 16:01:16 +01:00
Marcelo Silveira
d2fa737aa0
introducing lockable implementation
2010-01-01 17:57:35 -02:00
José Valim
0a5ba20931
Mail views a scoped as well.
2009-12-15 01:32:40 +01:00
José Valim
dc86a571ae
[DEPRECATION] Notifier is deprecated, use DeviseMailer instead. Remember to rename app/views/notifier to app/views/devise_mailer and I18n key from devise.notifier to devise.mailer.
2009-11-02 23:14:27 -02:00
Carlos A. da Silva
0eb8b3b7cc
Mailer subjects namespaced by model
2009-10-20 01:28:01 -02:00
Carlos A. da Silva
75e98d3041
Separating perishable token into confirmation and reset_password tokens. Adding confirmation_sent_at attribute.
2009-10-18 09:14:52 -02:00
Carlos A. da Silva
f4de0f6c5a
Creating Devise.map to generate and recognize urls based on scope.
2009-10-09 21:11:58 -03:00
Carlos A. da Silva
1bd14eadfa
Creating notification tests and views.
2009-10-09 07:36:13 -03:00
Carlos A. da Silva
3655fe9096
Restructuring directories for models and mailers.
2009-09-20 10:35:26 -03:00