@mmd-osm commented on this pull request.


> @@ -1,7 +1,7 @@
 class RelationMembersController < ElementsController
   def show
     @type = "relation"
-    @feature = Relation.preload(:relation_members => :member).find(params[:id])
+    @feature = Relation.preload(:relation_members => { :member => :element_tag 
}).find(params[:id])

I think there's a typo here. It should be element_tags with "s" at the end. 
Right now, prefetching isn't really working.

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

Message ID: 
<openstreetmap/openstreetmap-website/pull/6338/review/3141365...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to