[openstreetmap/openstreetmap-website] Add geoblock zones where anynomous notes are not allowed (PR #6713)

Pablo Brasero notifications at github.com
Wed Jan 21 17:22:34 UTC 2026


@pablobm commented on this pull request.



> +# Table name: geoblock_zones
+#
+#  id         :bigint           not null, primary key
+#  name       :string
+#  zone       :geography        geometry, 4326
+#  created_at :datetime         not null
+#  updated_at :datetime         not null
+#
+class GeoblockZone < ApplicationRecord
+  def self.falls_within_any?(opts = {})
+    lon = opts.fetch(:lon)
+    lat = opts.fetch(:lat)
+
+    GeoblockZone.exists?(
+      [
+        # FIXME: do proper interpolation of lon/lat

This is fixed now, although may change depending on the final choice of gem, or preference of style.

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

Message ID: <openstreetmap/openstreetmap-website/pull/6713/review/3688473839 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260121/94d4626c/attachment.htm>


More information about the rails-dev mailing list