theoretically, for that to work, you have to have an enumerable (which has
does qualify but you probably want just the value and not the key) that
responds to the calls against the methods in the fields list. You might try
changing the hash to an array of arrays, with each sub-array having the key
and value pair. Then use first and last as the fields.
{ :k1 => :v1, :k2 => :v2 }.collect { |i| i }
=> [[:k2, :v2], [:k1, :v1]]
Converting wasn't hard but you'll still be fighting quite a bit of missing
info from the fact table-plus is expecting a collection of AR models.
Good luck
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.