On Tuesday, February 11, 2014 6:22:52 AM UTC-8, Jamie Hodge wrote:
>
> Hi Jeremy,
>
> I'm using lock_version to generate etags for datasets and records. I 
> currently have a datasets method that concats all lock_versions, using 
> Sequel.qualify(model.table_name, :lock_version). 
>
> Elsewhere, I am using #eager and I'd like to reflect the eagerly loaded 
> associations in the resulting etag.
>
> How can I select_map all lock versions present in a given dataset, after 
> eager has been called?
>
Could you post a self contained example showing the issue you are having?

If lock_version is already retrieved in the associated objects, then just 
mapping over the cached records should work.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to