Oh, thank you! Sorry, I should have tried this before the question here (I 
thought `graph_block` would only affect `eager_graph`, not 
`association_join`).

On Thursday, December 7, 2017 at 6:19:01 PM UTC+3, Jeremy Evans wrote:
>
> On Thursday, December 7, 2017 at 7:05:11 AM UTC-8, Alexander Popov wrote:
>>
>> Hello!
>>
>> How to exclude rows with specific value from custom association for 
>> `association_join`?
>>
>> Something like that:
>>
>> class Artist < Sequel::Model
>>   one_to_many :albums
>>   one_to_many :released_albums, class: 'Album', conditions: Sequel.~(
>> status: 'canceled')
>> end
>>
>> class Album < Sequel::Model
>>   many_to_one :artist
>> end
>>
>> Thank you.
>>
>
> You need to use :graph_block for that.
>
> 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 https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to