Commit 4003930
committed
Don't assume ActionMailer is available
If the Rails app that uses this gem doesn't include the
ActionMailer railtie, the gem raises this error:
`uninitialized constant ReactOnRailsHelper::ActionMailer`
This change introduces a check that the ActionMailer
constant is defined before setting the 'inMailer' option.
I'm not quite sure how to test this, so if anyone has
ideas, that would be helpful.1 parent 3a84802 commit 4003930
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
403 | 410 | | |
0 commit comments