On Monday, December 3, 2018 at 6:39:00 PM UTC-8, Eric Promislow wrote:
>
> This isn't working with Sequel 4.49.0 (We have documented problems
> migration to v5 due to mis-resolution of symlinks.)
>
As a general rule, the code examples I post apply to the current version of
Sequel. They may apply to older versions in many cases, but I don't tend
to purposely avoid using newer Sequel features on the off chance the person
asking for help is far behind in terms of updating (4.49.0 is 16 versions
behind currently).
> Non-consequential: in our code any class that subclasses Sequel::Model has
> a db connection via the `db` field
>
> > ProcessModel.db.from{[processes.as(:p1), processes.as(:p2)]}
> *** NoMethodError Exception: undefined method `as' for nil:NilClass
>
You could probably try:
ProcessModel.db.from(Sequel[:processes].as(:p1),
Sequel[:processes].as(:p2))
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.