Commit 776a2a1
authored
Fix method redefined warning for support_email (#1214)
`mattr_accessor :support_email` creates a `support_email=` writer, but
we immediately redefine it to add Mail::Address casting. This triggers
Ruby's "method redefined" warning when running with warnings enabled.
Use `mattr_reader` instead since we define the writer manually.1 parent c0ab652 commit 776a2a1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments