Xiang Li

Results 23 comments of Xiang Li

Would you please explain more about self join? Thank you very much, I guess you could use an association in model to join self :)

I think we can avoid self join from different levels. First, it's better to add a column like `first_time_flag`, and set the value after a user creates the event first...

@nzifnab I am not sure your issue is the same as @dontfidget 's. Maybe you could provide a minimal gist in another issue thread to show your real goal including...

@dontfidget I will keep an eye on your issue to see if I can provide a `MyClass.as()` and I'm not very sure what this means: > I also would like...

Not very easy, and I am not sure how necessary to add this feature. Maybe you could hack `Squeel::Nodes::Stub` in your application?

@ernie @bmulholland , I'm sorry that I'm not active recently. I also really want to update it, I know there are many issues in it. But Rails 5 changes a...

@90yukke @reejosamuel Working on this. If possible, please use ``` ruby EmployeeSchedule.includes(:availability_type) .where { availability_type.operational == false } .where { availability_type.workday == false } .references(:availability_type) ``` as an alternative way...

Hum.... I think it's easier to change your column name in your database and add an alias in your model than other ways :)

@dontfidget Thank you very much. Does it mean AR can pass this test? Squeel has a long history when AR was not as good as current. So it provided another...

hum... you can also use squeel like this: ``` ruby Comment.joins { article }.where { article.person_id == person } ``` It's also convenient when defining scopes :)