[openstreetmap/openstreetmap-website] Add database checks to issue and report controllers (PR #3878)

Tom Hughes notifications at github.com
Wed Jan 11 11:10:16 UTC 2023


@tomhughes commented on this pull request.



> @@ -3,6 +3,7 @@ class IssueCommentsController < ApplicationController
 
   before_action :authorize_web
   before_action :set_locale
+  before_action :check_database_readable

Oh I missed the `.build` / `.save!` and only noticed the find...

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3878#discussion_r1066866248
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3878/review/1243716076 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230111/b13a3729/attachment.htm>


More information about the rails-dev mailing list