]> git.openstreetmap.org Git - rails.git/commitdiff
Set the reported_user in a callback
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jul 2017 12:36:48 +0000 (13:36 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 12 Jul 2017 12:36:48 +0000 (13:36 +0100)
This avoids passing around the reported_user via forms. There was no
validation anywhere that the reported_user corresponded to the object
being reported. This approach removes those worries too.


No differences found