metaminded / tabulatr2

A very JS enhanced Tabulatr edition. Rails4, Ruby 2 required
Other
21 stars 10 forks source link

Nested associations support #67

Open mlt opened 6 years ago

mlt commented 6 years ago

One may use

association %s(assoc1-assoc12-assoc23), :column3

or

association %i[assoc1 assoc12 assoc23], :column3

This will result in eager loading of {assoc1: {assoc12: :assoc23}, [:plain_assocs]. Such fields are handled with dashes internally, i.e. full column name is like assoc1-assoc12-assoc23:column3. This presumes there is no colons and dashes in association names.