Stew McKinney

Results 23 comments of Stew McKinney

It seems like the tests are failing because he replaced `octopus_establish_connection` with `establish_connection`. Wondering if this will work if `establish_connection` is just aliased to `octopus_establish_connection`.

It doesn't - I think this will require a more significant patch.

Could you post your Gemfile.lock? ( or at relevant gem info, Active Record, Squeel, etc )

I'm pretty sure this is standard behavior, see: https://github.com/activerecord-hackery/squeel/issues/272 for examples of expected behavior re: subqueries and Rails. If you need "id" IN (1,2), I think I would just .to_a.map...

Hopefully, I'd be glad to help out to get that to happen.

@bmuholland I'll give it a look when I get a chance. Definitely interested in helping out. On Wed, Mar 16, 2016 at 1:04 AM, gamov [email protected] wrote: > @rzane https://github.com/rzane...

I am also seeing this when using includes with a query which references the included model.

Is there anything that we are waiting for with this? @bigxiang

You can use hours.from_now if you use it in a my{} block. Squeel will convert the time correctly for you.

I guess this is a Predicate and Functions can't receive Predicates in the DSL?