Thanks Jeremy! That worked great.

I was just about to come back here to post that I had just tried out a 
whole slew of permutations on the `class: :Model` option... But hadn't 
realized I should rename the association itself. 

Thank you so much for your quick and zesty help. It's crazy, and very much 
appreciated!

On Thursday, January 4, 2018 at 9:28:03 AM UTC-6, Jeremy Evans wrote:
>
> On Thursday, January 4, 2018 at 7:23:11 AM UTC-8, Tim Tilberg wrote:
>>
>> I fear the answer to this question will simply be "Don't use the class 
>> name `Model`" -- I'd like to avoid this, as the word Model is the most 
>> meaningful in our context, and is largely established in the greater system.
>>
>
> You can use the class name Model, but you shouldn't use the association 
> name model, as that overrides Sequel::Model#model in a way that breaks 
> Sequel::Model.  You can probably do:
>
>   Submodel.many_to_one :parent_model, :class=>:Model
>
> 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 sequel-talk+unsubscr...@googlegroups.com.
To post to this group, send email to sequel-talk@googlegroups.com.
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