Re: `many_to_one :model` results in a non-functioning Sequel::Model

2018-01-04 Thread Tim Tilberg
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

Re: `many_to_one :model` results in a non-functioning Sequel::Model

2018-01-04 Thread Jeremy Evans
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. >

`many_to_one :model` results in a non-functioning Sequel::Model

2018-01-04 Thread Tim Tilberg
I am working on a module that interacts with components of an existing database with tables: `Brand`, `Model`, `Submodel` and came across an issue while defining an association. Generally speaking, my models look like this: module COC class Brand < Sequel::Model one_to_many :models end