@iandees commented on this pull request.
> + changes = {}
+
+ # Check for added and modified tags
+ current_tags.each do |key, value|
+ if !previous_tags.key?(key)
+ changes[key] = { type: :added, current: value }
+ elsif previous_tags[key] != value
+ changes[key] = { type: :modified, current: value, previous:
previous_tags[key] }
+ else
+ changes[key] = { type: :unchanged, current: value }
+ end
+ end
This is nicer, thanks. Improved in 8b1fb0bf6.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6448#discussion_r2434349903
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6448/review/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev