discourse/lib/email
Sam Saffron 0a5a6dfded DEV: stop mutating inputs as a side effect
We had quite a few cases in core where inputs are being mutated as a side
effect of calling a method.

This handles all the cases where specs caught this.

Mutating inputs makes code harder to reason about. Eg:

```
frog = "frog"
jump(frog)
puts frog
"fly" # ?????
```

This commit is part of a followup commit that adds # frozen_string_literal
to all our specs.
2019-04-30 10:25:53 +10:00
..
message_builder.rb DEV: stop mutating inputs as a side effect 2019-04-30 10:25:53 +10:00
processor.rb DEV: remove update_attributes which is deprecated in Rails 6 2019-04-29 17:32:25 +10:00
receiver.rb FIX: Do not strip email lines having lists. 2019-04-16 11:39:35 +03:00
renderer.rb DEV: Rails 5.2 upgrade and global gem upgrade 2018-06-07 14:21:33 +10:00
sender.rb PERF: Add `index_reply_id_on_post_replies`. 2019-04-10 13:58:29 +08:00
styles.rb FIX: prefer data-original-href attribute to get iframe URL 2019-04-24 13:53:27 +05:30