Hi Hopefully this is an easy one but one I've been puzzling over it for a while now...
When including associations with the json_serializer is it possible to modify the association criteria? For example if I have: Episode.where(:user_id => user).to_json(:include => :colleagues) How might I go about including only those :colleagues that have a boolean column named "active" set to true? Using .join() I understandably get NoMethodErrors on the join columns when doing to_json, as there are no corresponding instance methods on Episode. Is there a way around this? Thanks Paul -- 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.
