]> git.openstreetmap.org Git - rails.git/commit
Move html_safe declaration for user_mailer from layout to helper
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 27 Nov 2024 18:04:32 +0000 (18:04 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 27 Nov 2024 18:04:32 +0000 (18:04 +0000)
commitce342fede0fc465993e588487056d76458f97169
treec3c92f0caa72ca29dfb689d3f783b345abaa4a22
parentd2dc1ff8978a3ed9636c172a7e3cfb8e3d83410b
Move html_safe declaration for user_mailer from layout to helper

This allows us to enable output safety checks for all code within
erb files.

`rubocop --auto-gen-config` ignores code within the erb files, so
it is easier to maintain an exclusion on the helper than inside
the layout.
.erb_lint.yml
.rubocop_todo.yml
app/helpers/user_mailer_helper.rb
app/views/layouts/user_mailer.html.erb