tomhughes left a comment (openstreetmap/openstreetmap-website#6326)
So I tried adding associations to node/way/relation along these lines:
```ruby
has_many :element_tags, :class_name => "NodeTag"
```
and with all three in place I could then do:
```ruby
Relation.preload(:relation_tags, :relation_members => { :member =>
:element_tags }).find(2)
```
and it would preload everything.
So as I suspected we just need to rename the associations to have a common name
and it should all work.
Note that the old models already have a common name (`old_tags`) so this should
already work there.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6326#issuecomment-3202276027
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6326/c3202276...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev