On Friday, August 29, 2014 4:09:26 AM UTC-7, Paul Carew wrote:
>
> Many thanks Jeremy. Given your suggestion I have managed to solve this 
> issue in my use case, by adding a :conditions => {:active => true} to the 
> association.
>
> Given the existing options of :except, :include, :only and :root available 
> in to_json(), would an additional :where option be a natural feeling 
> addition? That said, I am not familiar with the complexities of the API 
> so appreciate that may not be possible or a good idea.
>

The :callback option I proposed is more general than a :where option, so if 
we were going to add an option, I think :callback would be better.  If we 
add :where, people will start requesting options for :order, :limit, etc..

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/d/optout.

Reply via email to