]> git.openstreetmap.org Git - rails.git/commit
Use Activerecord '#or' method for queries
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 30 Aug 2023 16:17:15 +0000 (17:17 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 30 Aug 2023 16:17:15 +0000 (17:17 +0100)
commit4af54ce93bd01a4094a4657cf9e54860a7e16bb2
tree007e1249ea1f3c1d713998a4164497269acc6c17
parent124909a64c4c2b739cebfff69fcf100e6b6d2457
Use Activerecord '#or' method for queries

That let's us use relation names (like `sender`) and avoid dealing
directly with ids.
app/controllers/messages_controller.rb